# NOT RUN {
## generate swiss roll data
X = aux.gensamples(n=100)
## compare different perplexity
out1 <- do.tsne(X, ndim=2, perplexity=5)
out2 <- do.tsne(X, ndim=2, perplexity=10)
out3 <- do.tsne(X, ndim=2, perplexity=50)
## Visualize three different projections
par(mfrow=c(1,3))
plot(out1$Y[,1], out1$Y[,2], main="tSNE::perplexity=5")
plot(out1$Y[,1], out1$Y[,2], main="tSNE::perplexity=10")
plot(out1$Y[,1], out1$Y[,2], main="tSNE::perplexity=50")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab