Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olegs committed Jul 18, 2023
1 parent c90d4ee commit ec0ded8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysrc/papers/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def analyze_papers(self, ids, query, topics=TOPICS_NUMBER_MEDIUM, test=False, ta
logger.debug(f'Explained variation {int(np.sum(pca.explained_variance_ratio_) * 100)}%')
logger.debug('Apply TSNE transformation on papers PCA coords')
if not test:
tsne = TSNE(n_components=2, random_state=42, perplexity=min(30, len(self.df - 1)))
tsne = TSNE(n_components=2, random_state=42, perplexity=min(30, len(self.df) - 1))
else:
tsne = TSNE(n_components=2, random_state=42, perplexity=3)
tsne_embeddings_2d = tsne.fit_transform(self.pca_coords)
Expand Down

0 comments on commit ec0ded8

Please sign in to comment.