powered by
Return the closest MeanShift cluster for a new dataset.
# S3 method for meanshift predict(object, newdata, ...)
The classification model (created by MEANSHIFT).
MEANSHIFT
A new dataset (a data.frame), with same variables as the learning dataset.
data.frame
Other parameters.
# NOT RUN { 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