lol.classify.nearestCentroid {lolR} | R Documentation |
A function that trains a classifier based on the nearest centroid.
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
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)