]> code.communitydata.science - cdsc_reddit.git/commitdiff
Fix bug in tsne.
authorNate E TeBlunthuis <nathante@n2347.hyak.local>
Thu, 12 Nov 2020 00:43:41 +0000 (16:43 -0800)
committerNate E TeBlunthuis <nathante@n2347.hyak.local>
Thu, 12 Nov 2020 00:43:41 +0000 (16:43 -0800)
fit_tsne.py
tsne_subreddit_fit.feather [changed from symlink to file mode: 0644]

index 37341d47ad8eec933c4acc58fee7d5b9af374a9a..dd9fb93809a289e81babf7dfa90b6d9897b0791f 100644 (file)
@@ -28,7 +28,7 @@ tsne_model = TSNE(2,learning_rate=200,perplexity=40,n_iter=5000,metric='precompu
 
 tsne_fit_model = tsne_model.fit(dist)
 
 
 tsne_fit_model = tsne_model.fit(dist)
 
-tsne_fit_whole = tsne_fit_model.fit_transform(mat)
+tsne_fit_whole = tsne_fit_model.fit_transform(dist)
 
 plot_data = pd.DataFrame({'x':tsne_fit_whole[:,0],'y':tsne_fit_whole[:,1], 'subreddit':col_names})
 
 
 plot_data = pd.DataFrame({'x':tsne_fit_whole[:,0],'y':tsne_fit_whole[:,1], 'subreddit':col_names})
 
deleted file mode 120000 (symlink)
index 9521ddcf652818d8c8b1a152841bf22c370841fe..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-.git/annex/objects/1M/PF/SHA256E-s60874--5fe93033b4fcac562cb235e85134d2bd330a0aecd6d0afc151f9b9c028b0ebe5/SHA256E-s60874--5fe93033b4fcac562cb235e85134d2bd330a0aecd6d0afc151f9b9c028b0ebe5
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..50f46d527bbfa57fc6cd61c329240fd93ba81b82
--- /dev/null
@@ -0,0 +1 @@
+/annex/objects/SHA256E-s60874--7bbf7440060a402ccc5613461bc82558f59f8e4aa6851a8cf52402c24e4407d1

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