lol.classify.nearestCentroid {lolR} | R Documentation |
Nearest Centroid Classifier Training
Description
A function that trains a classifier based on the nearest centroid.
Usage
lol.classify.nearestCentroid(X, Y, ...)
Arguments
X |
|
Y |
|
... |
optional args. |
Value
A list of class nearestCentroid
, with the following attributes:
centroids |
|
ylabs |
|
priors |
|
Details
For more details see the help vignette:
vignette("centroid", package = "lolR")
Author(s)
Eric Bridgeford
Examples
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)
[Package lolR version 2.1 Index]