
Last chance! 50% off unlimited learning
Sale ends in
Return the closest MeanShift cluster for a new dataset.
# S3 method for meanshift
predict(object, newdata, ...)
The classification model (created by MEANSHIFT
).
A new dataset (a data.frame
), with same variables as the learning dataset.
Other parameters.
MEANSHIFT
if (FALSE) {
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = MEANSHIFT (d$train.x, bandwidth = .75)
predict (model, d$test.x)
}
Run the code above in your browser using DataLab