tsneReductor | R Documentation |
This method is an unsupervised, non-linear technique used for data exploration and visualizing high-dimensional data.This function constructs a low-dimensional embedding of high-dimensional data, distances, or similarities.
tsneReductor(data = NULL, dim = 2, perplexity = 30, max_iter = 500)
data |
Data matrix (each row is an observation, each column is a variable) |
dim |
Integer number; Output dimensional (default=2) |
perplexity |
numeric; Perplexity parameter (should not be bigger than 3 * perplexity < nrow(X) - 1, default=30) |
max_iter |
Integer; Number of iterations (default: 500) |
tsneY: A Matrix containing the new representations for the observation with selected dimensions by user
library("mlbench") data(Sonar) rndSamples <- sample(nrow(Sonar),150) trainData <- Sonar[rndSamples,] testData <- Sonar[-rndSamples,] tsne_trainData <- tsneReductor(trainData[,1:60],dim = 3,perplexity = 10,max_iter = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.