Skip to content

Commit

Permalink
fix bug in symmetrization for non-BH t-SNE
Browse files Browse the repository at this point in the history
  • Loading branch information
lvdmaaten authored Aug 17, 2016
1 parent 92637cf commit 002cddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsne.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void TSNE::run(double* X, int N, int D, double* Y, int no_dims, double perplexit
printf("Symmetrizing...\n");
int nN = 0;
for(int n = 0; n < N; n++) {
int mN = 0;
int mN = (n + 1) * N;
for(int m = n + 1; m < N; m++) {
P[nN + m] += P[mN + n];
P[mN + n] = P[nN + m];
Expand Down

0 comments on commit 002cddf

Please sign in to comment.