Skip to content

Commit 3389fad

Browse files
authored
Update README.rst
1 parent 7b39ccc commit 3389fad

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,24 @@ T-distributed Stochastic Neighbor Embedding (T-SNE)
445445

446446

447447

448+
T-distributed Stochastic Neighbor Embedding (T-SNE) is a nonlinear dimensionality reduction method for embedding high-dimensional data for which is mostly used for visualization in a low-dimensional space. This approach is based on `G. Hinton and ST. Roweis <https://www.cs.toronto.edu/~fritz/absps/sne.pdf>`__ . SNE works by converting the high dimensional Euclidean distances into conditional probabilities which represent similarities.
449+
450+
`Example <http://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html>`__:
451+
452+
453+
.. code:: python
454+
455+
import numpy as np
456+
from sklearn.manifold import TSNE
457+
X = np.array([[0, 0, 0], [0, 1, 1], [1, 0, 1], [1, 1, 1]])
458+
X_embedded = TSNE(n_components=2).fit_transform(X)
459+
X_embedded.shape
460+
461+
462+
Example of Glove and T-SNE for text:
463+
464+
.. image:: docs/pic/TSNE.png
465+
448466
===============================
449467
Text Classification Techniques
450468
===============================

0 commit comments

Comments
 (0)