cluster_dbscan | R Documentation |
Creates a clusterer object that uses the DBSCAN method It wraps the dbscan library.
cluster_dbscan(minPts = 3, eps = NULL)
minPts |
minimum number of points |
eps |
distance value |
A dbscan object.
# setup clustering
model <- cluster_dbscan(minPts = 3)
#load dataset
data(iris)
# build model
model <- fit(model, iris[,1:4])
clu <- cluster(model, iris[,1:4])
table(clu)
# evaluate model using external metric
eval <- evaluate(model, clu, iris$Species)
eval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.