do.isoproj | R Documentation |
Isometric Projection is a linear dimensionality reduction algorithm that exploits geodesic distance in original data dimension and mimicks the behavior in the target dimension. Embedded manifold is approximated by graph construction as of ISOMAP. Since it involves singular value decomposition and guesses intrinsic dimension by the number of positive singular values from the decomposition of data matrix, it automatically corrects the target dimension accordingly.
do.isoproj( X, ndim = 2, type = c("proportion", 0.1), symmetric = c("union", "intersect", "asymmetric"), 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 |
preprocess |
an additional option for preprocessing the data.
Default is "center". See also |
a named list containing
an (n\times ndim) matrix of projected observations as rows.
a (p\times ndim) whose columns are loadings.
a list containing information for out-of-sample prediction.
Kisung You
cai_isometric_2007Rdimtools
## use iris dataset data(iris) set.seed(100) subid <- sample(1:150, 50) X <- as.matrix(iris[subid,1:4]) lab <- as.factor(iris[subid,5]) ## try different connectivity levels output1 <- do.isoproj(X,ndim=2,type=c("proportion",0.50)) output2 <- do.isoproj(X,ndim=2,type=c("proportion",0.70)) output3 <- do.isoproj(X,ndim=2,type=c("proportion",0.90)) ## visualize two different projections opar <- par(no.readonly=TRUE) par(mfrow=c(1,3)) plot(output1$Y, main="50%", col=lab, pch=19) plot(output2$Y, main="70%", col=lab, pch=19) plot(output3$Y, main="90%", col=lab, pch=19) par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.