Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.dbs

Predict function for DBSCAN


Description

Return the closest DBSCAN cluster for a new dataset.

Usage

## S3 method for class 'dbs'
predict(object, newdata, ...)

Arguments

object

The classification model (of class dbs-class, created by DBSCAN).

newdata

A new dataset (a data.frame), with same variables as the learning dataset.

...

Other parameters.

See Also

Examples

require (datasets)
data (iris)
d = splitdata (iris, 5)
model = DBSCAN (d$train.x, minpts = 5, eps = 0.65)
predict (model, d$test.x)

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.