Skip to content

Commit ab9f1d6

Browse files
authored
Merge pull request #58 from rjavierch/bugfix/issue-54
Update tsne function due to dependency change in nlp.py
2 parents 242154d + 85ddb2c commit ab9f1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

litstudy/nlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,6 @@ def calculate_embedding(corpus: Corpus, *, rank=2, svd_dims=50, perplexity=30, s
408408
components = tfidf
409409

410410
model = TSNE(
411-
rank, metric="cosine", square_distances=True, perplexity=perplexity, random_state=seed
411+
rank, metric="cosine", perplexity=perplexity, random_state=seed
412412
)
413413
return model.fit_transform(components)

0 commit comments

Comments
 (0)