Skip to content

Files

tsne-mnist-canvas

tfjs-tsne example: MNIST

This example shows usage of the tfjs-tsne library to do dimensionality reduction on the MNIST data set. This examples takes 10000 images of digits, resize them to 10x10px and use T-SNE to organize them in two dimensions.

Note that tfjs-tsne requires WebGL 2 support and thus will not work on certain devices, mobile devices especially. Currently it best works on desktop devices.

yarn
yarn watch

See this example live!