Changeset 14856 for branches/TSNE
- Timestamp:
- 04/13/17 11:15:47 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNEStatic.cs
r14855 r14856 437 437 } 438 438 439 // TODO: there seems to be a bug in the error approximation.440 439 // The mapping of the approximate tSNE looks good but the error curve never changes. 441 440 private static double EvaluateErrorApproximate(IReadOnlyList<int> rowP, IReadOnlyList<int> colP, IReadOnlyList<double> valP, double[,] y, double theta) { … … 627 626 var row = new double[d]; 628 627 for(var n1 = 0; n1 < n; n1++) { 629 Buffer.BlockCopy(negF, (sizeof(double) * n1 * d), row, 0, d);630 628 tree.ComputeNonEdgeForces(n1, theta, row, ref sumQ); 629 Buffer.BlockCopy(row, 0, negF, (sizeof(double) * n1 * d), d*sizeof(double)); 631 630 } 632 631 633 632 // Compute final t-SNE gradient 634 for (var i = 0; i < n; i++)633 for (var i = 0; i < n; i++) 635 634 for(var j = 0; j < d; j++) { 636 635 dC[i, j] = posF[i, j] - negF[i, j] / sumQ;
Note: See TracChangeset
for help on using the changeset viewer.