predict.dbs | R Documentation |
Return the closest DBSCAN cluster for a new dataset.
## S3 method for class 'dbs'
predict(object, newdata, ...)
object |
The classification model (of class |
newdata |
A new dataset (a |
... |
Other parameters. |
DBSCAN
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = DBSCAN (d$train.x, minpts = 5, eps = 0.65)
predict (model, d$test.x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.