texthero.representation.tsne¶
-
tsne
(s: pandas.core.series.Series, n_components=2, perplexity=30.0, early_exaggeration=12.0, learning_rate=200.0, n_iter=1000, n_iter_without_progress=300, min_grad_norm=1e-07, metric='euclidean', init='random', verbose=0, random_state=None, method='barnes_hut', angle=0.5, n_jobs=- 1)¶ Perform TSNE on the given pandas series.
- Parameters
- sPandas Series
- n_componentsint, default is 2.
Number of components to keep. If n_components is not set or None, all components are kept.
- perplexityint, default is 30.0