Changeset 14858
- Timestamp:
- 04/13/17 13:36:36 (8 years ago)
- Location:
- branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/SpacePartitioningTree.cs
r14855 r14858 250 250 } 251 251 252 // does not use the tree 252 253 public void ComputeEdgeForces(int[] rowP, int[] colP, double[] valP, int n, double[,] posF) { 253 254 // Loop over all edges in the graph -
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNEStatic.cs
r14856 r14858 202 202 203 203 //Calculate Similarities 204 if (exact) p = CalculateExactSimilarites(data, distance, perplexity);204 if (exact) p = CalculateExactSimilarites(data, distance, perplexity); 205 205 else CalculateApproximateSimilarities(data, distance, perplexity, out rowP, out colP, out valP); 206 206 … … 618 618 619 619 620 620 621 private static void ComputeApproximateGradient(int[] rowP, int[] colP, double[] valP, double[,] y, int n, int d, double[,] dC, double theta) { 621 622 var tree = new SpacePartitioningTree(y); … … 626 627 var row = new double[d]; 627 628 for(var n1 = 0; n1 < n; n1++) { 629 Array.Clear(row,0,row.Length); 628 630 tree.ComputeNonEdgeForces(n1, theta, row, ref sumQ); 629 631 Buffer.BlockCopy(row, 0, negF, (sizeof(double) * n1 * d), d*sizeof(double));
Note: See TracChangeset
for help on using the changeset viewer.