From: Nate E TeBlunthuis Date: Thu, 12 Nov 2020 00:43:41 +0000 (-0800) Subject: Fix bug in tsne. X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/commitdiff_plain/ed0e1a82357219ea70e6dfc3396d074af157086f?ds=sidebyside;hp=--cc Fix bug in tsne. --- ed0e1a82357219ea70e6dfc3396d074af157086f diff --git a/fit_tsne.py b/fit_tsne.py index 37341d4..dd9fb93 100644 --- a/fit_tsne.py +++ b/fit_tsne.py @@ -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_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}) diff --git a/tsne_subreddit_fit.feather b/tsne_subreddit_fit.feather deleted file mode 120000 index 9521ddc..0000000 --- a/tsne_subreddit_fit.feather +++ /dev/null @@ -1 +0,0 @@ -.git/annex/objects/1M/PF/SHA256E-s60874--5fe93033b4fcac562cb235e85134d2bd330a0aecd6d0afc151f9b9c028b0ebe5/SHA256E-s60874--5fe93033b4fcac562cb235e85134d2bd330a0aecd6d0afc151f9b9c028b0ebe5 \ No newline at end of file diff --git a/tsne_subreddit_fit.feather b/tsne_subreddit_fit.feather new file mode 100644 index 0000000..50f46d5 --- /dev/null +++ b/tsne_subreddit_fit.feather @@ -0,0 +1 @@ +/annex/objects/SHA256E-s60874--7bbf7440060a402ccc5613461bc82558f59f8e4aa6851a8cf52402c24e4407d1