Setup tSNE config.
setup_tSNE(
k = 2L,
initial_dims = 50L,
perplexity = 30,
theta = 0.5,
check_duplicates = TRUE,
pca = TRUE,
partial_pca = FALSE,
max_iter = 1000L,
verbose = getOption("verbose", FALSE),
is_distance = FALSE,
Y_init = NULL,
pca_center = TRUE,
pca_scale = FALSE,
normalize = TRUE,
stop_lying_iter = if (is.null(Y_init)) 250L else 0L,
mom_switch_iter = if (is.null(Y_init)) 250L else 0L,
momentum = 0.5,
final_momentum = 0.8,
eta = 200,
exaggeration_factor = 12,
num_threads = NULL,
features = NULL
)tSNEConfig object.
Integer [1, Inf): Number of components.
Integer [1, Inf): Initial dimensions.
Numeric [0, Inf): Perplexity.
Numeric [0, 1]: Speed/accuracy trade-off.
Logical: If TRUE, check for duplicates.
Logical: If TRUE, perform PCA.
Logical: If TRUE, perform partial PCA.
Integer [1, Inf): Maximum number of iterations.
Logical: If TRUE, print messages.
Logical: If TRUE, x is a distance matrix.
Optional Matrix: Initial Y matrix.
Logical: If TRUE, center PCA.
Logical: If TRUE, scale PCA.
Logical: If TRUE, normalize.
Integer [0, Inf): Stop lying iterations.
Integer [0, Inf): Momentum switch iterations.
Numeric: Momentum.
Numeric: Final momentum.
Numeric: Eta.
Numeric: Exaggeration factor.
Optional Integer: Deprecated and ignored. Threads come
from the execution config: set n_workers_algorithm in the
execution_config passed to decomp.
Optional Character vector: Names of at least 2 distinct
feature columns to decompose. NULL decomposes all numeric features.
EDG
Get more information on the config by running ?Rtsne::Rtsne.
tSNE_config <- setup_tSNE(k = 3L)
tSNE_config
Run the code above in your browser using DataLab