Learn R Programming

fdm2id (version 1.0.1)

TSNE: t-distributed Stochastic Neighbor Embedding

Description

Return the t-SNE dimensionality reduction.

Usage

TSNE(x, perplexity = 30, nstart = 10, seed = NULL, ...)

Value

The Rtsne result. Rtsne requires distinct observations, so duplicated rows of x are removed before fitting; the returned Y (and costs) are then expanded back to nrow (x) rows, in the order of x, so that they can be used directly alongside the original dataset -- duplicated observations simply share the same coordinates.

Arguments

x

A numeric dataset (data.frame or matrix).

perplexity

Specification of the perplexity.

nstart

How many random sets should be chosen? The embedding with the lowest final cost is kept.

seed

A specified seed for random number generation.

...

Other parameters.

See Also

Rtsne

Examples

Run this code
require (datasets)
data (iris)
TSNE (iris [, -5])

Run the code above in your browser using DataLab