May 2018
Intermediate to advanced
576 pages
14h 42m
English
We can apply this powerful algorithm to the same Olivetti faces dataset, using the Scikit-Learn class TSNE with n_components=2 and perplexity=20:
from sklearn.manifold import TSNEtsne = TSNE(n_components=2, perplexity=20)X_tsne = tsne.fit_transform(faces['data'])
The result for all 400 samples is shown in the following graph:

A visual inspection of the label distribution can confirm that t-SNE recreated the optimal clustering starting from the original high-dimensional distribution. This algorithm can be employed in several non-linear dimensionality ...
Read now
Unlock full access