Skip to content

Commit

Permalink
Merge pull request #58 from rjavierch/bugfix/issue-54
Browse files Browse the repository at this point in the history
Update tsne function due to dependency change in nlp.py
  • Loading branch information
stijnh authored Aug 28, 2023
2 parents 242154d + 85ddb2c commit ab9f1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litstudy/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,6 @@ def calculate_embedding(corpus: Corpus, *, rank=2, svd_dims=50, perplexity=30, s
components = tfidf

model = TSNE(
rank, metric="cosine", square_distances=True, perplexity=perplexity, random_state=seed
rank, metric="cosine", perplexity=perplexity, random_state=seed
)
return model.fit_transform(components)

0 comments on commit ab9f1d6

Please sign in to comment.