Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14858


Ignore:
Timestamp:
04/13/17 13:36:36 (7 years ago)
Author:
gkronber
Message:

#2700 fixed another bug in the bh-tsne implementation

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  
    250250    }
    251251
     252    // does not use the tree
    252253    public void ComputeEdgeForces(int[] rowP, int[] colP, double[] valP, int n, double[,] posF) {
    253254      // Loop over all edges in the graph
  • branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNEStatic.cs

    r14856 r14858  
    202202
    203203        //Calculate Similarities
    204         if(exact) p = CalculateExactSimilarites(data, distance, perplexity);
     204        if (exact) p = CalculateExactSimilarites(data, distance, perplexity);
    205205        else CalculateApproximateSimilarities(data, distance, perplexity, out rowP, out colP, out valP);
    206206
     
    618618
    619619
     620
    620621    private static void ComputeApproximateGradient(int[] rowP, int[] colP, double[] valP, double[,] y, int n, int d, double[,] dC, double theta) {
    621622      var tree = new SpacePartitioningTree(y);
     
    626627      var row = new double[d];
    627628      for(var n1 = 0; n1 < n; n1++) {
     629        Array.Clear(row,0,row.Length);
    628630        tree.ComputeNonEdgeForces(n1, theta, row, ref sumQ);
    629631        Buffer.BlockCopy(row, 0, negF, (sizeof(double) * n1 * d), d*sizeof(double));
Note: See TracChangeset for help on using the changeset viewer.