From ed0e1a82357219ea70e6dfc3396d074af157086f Mon Sep 17 00:00:00 2001 From: Nate E TeBlunthuis Date: Wed, 11 Nov 2020 16:43:41 -0800 Subject: [PATCH] Fix bug in tsne. --- fit_tsne.py | 2 +- tsne_subreddit_fit.feather | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 120000 => 100644 tsne_subreddit_fit.feather 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 -- 2.39.5