This is Matlab script for plotting 2 Dimensional and 3 Dimensional t-Distributed Stochastic Neighbor Embedding (t-SNE)
t-Distributed Stochastic Neighbor Embedding (t-SNE) is a (prize-winning) technique for dimensionality reduction that is particularly well suited for the visualization of high-dimensional datasets. The technique can be implemented via Barnes-Hut approximations, allowing it to be applied on large real-world datasets. For more information, check this page.
- Clone this repository.
- How the Dataset and label should be arranged ?
- The script requires two inputs -
Data
andLabel
. - Arrangement of
Data
- First column should be "label name" and rest of the columns should be "features". - Arrangement of
Label
- First column should be "label name" , which should be in the same order asData
's label names. - Each row in both
Data
andLabel
is a sample.
- The script requires two inputs -
- Replace the
Data
andLabel
in folderinputs
directory with the same name. - Run the script
tsne_example.m
. - The code will generate both 2D and 3D t-sne plots.
Examples of Data
,Label
and t-sne plots
have been included with this repository. Sample 2D and 3D t-sne plots for the given sample inputs are as follows :
Open a new issue or do a pull request incase your are facing any difficulty with the code base or you want to contribute to it.