Description Usage Arguments Value Details Author(s) Examples
A function that predicts the class of points based on the nearest centroid
1 2 |
object |
An object of class
|
X |
|
... |
optional args. |
Yhat [n]
the predicted class of each of the n
data point in X
.
For more details see the help vignette:
vignette("centroid", package = "lolR")
Eric Bridgeford
1 2 3 4 5 | 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)
Yh <- predict(model, X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.