Description Usage Arguments Value Author(s) Examples
View source: R/bayes_optimal.R
A function for recovering the Bayes Optimal Projection, which optimizes Bayes classification.
1 | lol.project.bayes_optimal(X, Y, mus, Sigmas, priors, ...)
|
X |
|
Y |
|
mus |
|
Sigmas |
|
priors |
|
... |
optional args. |
A list of class embedding
containing the following:
|
|
|
the eigen values associated with the eigendecomposition. |
|
|
|
|
|
|
|
|
|
|
Eric Bridgeford
1 2 3 4 5 6 | library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
# obtain bayes-optimal projection of the data
model <- lol.project.bayes_optimal(X=X, Y=Y, mus=data$mus,
S=data$Sigmas, priors=data$priors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.