do.isomap | R Documentation |
do.isomap
is an efficient implementation of a well-known Isomap method
by Tenenbaum et al (2000). Its novelty comes from applying classical multidimensional
scaling on nonlinear manifold, which is approximated as a graph.
do.isomap( X, ndim = 2, type = c("proportion", 0.1), symmetric = c("union", "intersect", "asymmetric"), weight = FALSE, preprocess = c("center", "scale", "cscale", "decorrelate", "whiten") )
X |
an (n\times p) matrix or data frame whose rows are observations and columns represent independent variables. |
ndim |
an integer-valued target dimension. |
type |
a vector of neighborhood graph construction. Following types are supported;
|
symmetric |
one of |
weight |
|
preprocess |
an additional option for preprocessing the data.
Default is "center". See also |
a named list containing
an (n\times ndim) matrix whose rows are embedded observations.
a list containing information for out-of-sample prediction.
Kisung You
silva_global_2003Rdimtools
## generate data set.seed(100) X <- aux.gensamples(n=123) ## 1. connecting 10% of data for graph construction. output1 <- do.isomap(X,ndim=2,type=c("proportion",0.10),weight=FALSE) ## 2. constructing 25%-connected graph output2 <- do.isomap(X,ndim=2,type=c("proportion",0.25),weight=FALSE) ## 3. constructing 25%-connected with binarization output3 <- do.isomap(X,ndim=2,type=c("proportion",0.50),weight=FALSE) ## Visualize three different projections opar = par(no.readonly=TRUE) par(mfrow=c(1,3)) plot(output1$Y, main="10%") plot(output2$Y, main="25%") plot(output3$Y, main="25%+Binary") par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.