lejon / T-SNE-Java

Pure Java implementation of Van Der Maaten and Hinton's t-sne clustering algorithm
197 stars 60 forks source link

Barnes hut example in the readme #15

Closed odinsbane closed 6 years ago

odinsbane commented 6 years ago

The example in the readme references a method that doesn't exist.

double [][] Y = tsne.tsne(X, 2, initial_dims, perplexity); 

I replaced it with:

TSneConfig config = new TSneConfig(X, 2, initial_dims, perplexity, 1000000, true, 0.5, true, true);
double [][] Y = tsne.tsne(config);   

That seems to work, as I get some result.

lejon commented 6 years ago

Thanks! Corrected!