basis_odp | R Documentation |
Orthogonal Discriminant Projection (ODP) is a linear dimension reduction method with class supervision. It maximizes weighted difference between local and non-local scatter while local information is also preserved by constructing a neighborhood graph.
basis_odp(data, class, d = 2, type = c("proportion", 0.1), ...)
data |
Numeric matrix or data.frame of the observations, coerced to matrix. |
class |
The class for each observation, coerced to a factor. |
d |
Number of dimensions in the projection space.
of |
type |
A vector specifying the neighborhood graph construction.
Expects; |
... |
Optional, other arguments to pass to |
Li B, Wang C, Huang D (2009). "Supervised feature extraction based on orthogonal discriminant projection." Neurocomputing, 73(1-3), 191-196.
Rdimtools::do.odp
for locality
preservation arguments.
Rdimtools::aux.graphnbd
for
details on type
.
Other basis producing functions:
basis_guided()
,
basis_half_circle()
,
basis_olda()
,
basis_onpp()
,
basis_pca()
dat <- scale_sd(wine[, 2:6])
clas <- wine$Type
basis_odp(data = dat, class = clas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.