]> code.communitydata.science - cdsc_reddit.git/blobdiff - fit_tsne.py
Update code for building simlarity matrices.
[cdsc_reddit.git] / fit_tsne.py
index dd9fb93809a289e81babf7dfa90b6d9897b0791f..7de2ac015f7960a5a37dfa7b5d54fcb6d1ebaae6 100644 (file)
@@ -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=750,perplexity=50,n_iter=10000,metric='precomputed',early_exaggeration=20,n_jobs=-1)
 
 tsne_fit_model = tsne_model.fit(dist)
 

Community Data Science Collective || Want to submit a patch?