predict.meanshift | R Documentation |
Return the closest MeanShift cluster for a new dataset.
## S3 method for class 'meanshift'
predict(object, newdata, ...)
object |
The classification model (created by |
newdata |
A new dataset (a |
... |
Other parameters. |
MEANSHIFT
## Not run:
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = MEANSHIFT (d$train.x, bandwidth = .75)
predict (model, d$test.x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.