Description Usage Arguments Value Details Author(s) Examples
A function that trains a classifier based on the nearest centroid.
1 | lol.classify.nearestCentroid(X, Y, ...)
|
X |
|
Y |
|
... |
optional args. |
A list of class nearestCentroid
, with the following attributes:
centroids |
|
ylabs |
|
priors |
|
For more details see the help vignette:
vignette("centroid", package = "lolR")
Eric Bridgeford
1 2 3 4 | library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
model <- lol.classify.nearestCentroid(X, Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.