StatQuest: t-SNE, clearly explained!

By request, here are the powerpoint slides! If you download them, please encourage anyone you share them with to watch the video and subscribe to my YouTube channel. These metrics are important to justify the time I spend on StatQuest.

Here’s how to create a t-SNE graph in R (this is copied from the help file for Rtsne)…

library("Rtsne")
iris_unique <- unique(iris) # Remove duplicates
iris_matrix <- as.matrix(iris_unique[,1:4])
set.seed(42) # Set a seed if you want reproducible results
tsne_out <- Rtsne(iris_matrix) # Run TSNE

# Show the objects in the 2D tsne representation
plot(tsne_out$Y,col=iris_unique$Species)
Advertisements

2 thoughts on “StatQuest: t-SNE, clearly explained!

  1. I don’t suppose you could do another video on Locally Linear Embeddings, could you? I realize it’s similar to t-SNE, but it would be nice to have an intuitive yet substantive explanation of the similarities and differences.

    Great videos, btw!

    Thanks, John Strong

    Like

    • That’s a great idea. Someone else has already asked for me to do “isomap” dimension reduction, and Locally-linear embedding is related, so I’ll add it to the to-do list.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s