basis_onpp | R Documentation |
Orthogonal Neighborhood Preserving Projection (ONPP) is an unsupervised
linear dimension reduction method. It constructs a weighted data graph from
LLE method. Also, it develops LPP method by preserving the structure of local
neighborhoods. For the more details on type
see
Rdimtools::aux.graphnbd()
.
basis_onpp(data, d = 2, type = c("knn", sqrt(nrow(data))))
data |
Numeric matrix or data.frame of the observations, coerced to matrix. |
d |
Number of dimensions in the projection space. |
type |
A vector specifying the neighborhood graph construction.
Expects; |
Orthogonal matrix basis that distinguishes the levels of class
based on local and non-local variation as weighted against the neighborhood
graph.
He X (2005). Locality Preserving Projections. PhD Thesis, University of Chicago, Chicago, IL, USA.
Rdimtools::do.onpp
Rdimtools::aux.graphnbd
for
details on type
.
Other basis producing functions:
basis_guided()
,
basis_half_circle()
,
basis_odp()
,
basis_olda()
,
basis_pca()
dat <- scale_sd(wine[, 2:6])
basis_onpp(data = dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.