Changeset 15485 for branches/Weighted TSNE/3.4/TSNE/TSNEAlgorithm.cs
- Timestamp:
- 11/22/17 11:06:08 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Weighted TSNE/3.4/TSNE/TSNEAlgorithm.cs
r15484 r15485 285 285 var allowedInputVariables = problemData.AllowedInputVariables.ToArray(); 286 286 var allindices = Problem.ProblemData.AllIndices.ToArray(); 287 288 // jagged array is required to meet the static method declarations of TSNEStatic<T> 287 289 var data = Enumerable.Range(0, dataset.Rows).Select(x => new double[allowedInputVariables.Length]).ToArray(); 288 290 var col = 0; … … 296 298 } 297 299 298 //data = allindices.Select(row => allowedInputVariables.Select(col => dataset.GetDoubleValue(col, row)).ToArray()).ToArray();299 300 if (Normalization) data = NormalizeInputData(data); 300 301 state = TSNEStatic<double[]>.CreateState(data, DistanceFunction, random, NewDimensions, Perplexity, Theta, StopLyingIteration, MomentumSwitchIteration, InitialMomentum, FinalMomentum, Eta, RandomInitialization);
Note: See TracChangeset
for help on using the changeset viewer.