X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/blobdiff_plain/ed0e1a82357219ea70e6dfc3396d074af157086f..cd43a94865a0889dc0be91aef4d9179848e273e4:/fit_tsne.py?ds=inline diff --git a/fit_tsne.py b/fit_tsne.py index dd9fb93..06e949a 100644 --- a/fit_tsne.py +++ b/fit_tsne.py @@ -24,7 +24,7 @@ mat = np.stack(mat) mat = mat + np.tril(mat.transpose(),k=-1) dist = 2*np.arccos(mat)/np.pi -tsne_model = TSNE(2,learning_rate=200,perplexity=40,n_iter=5000,metric='precomputed') +tsne_model = TSNE(2,learning_rate=500,perplexity=50,n_iter=10000,metric='precomputed',early_exaggeration=20,n_jobs=-1) tsne_fit_model = tsne_model.fit(dist)