Predict function for K-means
Return the closest K-means cluster for a new dataset.
## S3 method for class 'kmeans' predict(object, newdata, ...)
object |
The classification model (created by |
newdata |
A new dataset (a |
... |
Other parameters. |
require (datasets) data (iris) d = splitdata (iris, 5) model = KMEANS (d$train.x, k = 3) predict (model, d$test.x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.