powered by
Return the closest DBSCAN cluster for a new dataset.
# S3 method for dbs predict(object, newdata, ...)
The classification model (of class dbs-class, created by DBSCAN).
dbs-class
DBSCAN
A new dataset (a data.frame), with same variables as the learning dataset.
data.frame
Other parameters.
require (datasets) data (iris) d = splitdata (iris, 5) model = DBSCAN (d$train.x, minpts = 5, eps = 0.65) predict (model, d$test.x)
Run the code above in your browser using DataLab