do.mvu | R Documentation |
The method of Maximum Variance Unfolding(MVU), also known as Semidefinite Embedding(SDE) is, as its names suggest,
to exploit semidefinite programming in performing nonlinear dimensionality reduction by unfolding
neighborhood graph constructed in the original high-dimensional space. Its unfolding generates a gram
matrix K in that we can choose from either directly finding embeddings ("spectral"
) or
use again Kernel PCA technique ("kpca"
) to find low-dimensional representations.
do.mvu( X, ndim = 2, type = c("proportion", 0.1), preprocess = c("null", "center", "scale", "cscale", "decorrelate", "whiten"), projtype = c("spectral", "kpca") )
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;
|
preprocess |
an additional option for preprocessing the data.
Default is "null". See also |
projtype |
type of method for projection; either |
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
weinberger_unsupervised_2006Rdimtools
## use a small subset of iris data set.seed(100) id = sample(1:150, 50) X = as.matrix(iris[id,1:4]) lab = as.factor(iris[id,5]) ## try different connectivity levels output1 <- do.mvu(X, type=c("proportion", 0.10)) output2 <- do.mvu(X, type=c("proportion", 0.25)) output3 <- do.mvu(X, type=c("proportion", 0.50)) ## visualize three different projections opar <- par(no.readonly=TRUE) par(mfrow=c(1,3)) plot(output1$Y, main="10% connected", pch=19, col=lab) plot(output2$Y, main="25% connected", pch=19, col=lab) plot(output3$Y, main="50% connected", pch=19, col=lab) par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.