Filter löschen
Filter löschen

specify the number of clusters in dbscan

5 Ansichten (letzte 30 Tage)
bana althawabteh
bana althawabteh am 13 Feb. 2021
Beantwortet: Image Analyst am 27 Jun. 2023
how to specify the number of clusters in dbscan please ????

Antworten (2)

VM Sreeram
VM Sreeram am 27 Jun. 2023
It is not possible to specify the number of clusters as a parameter in dbscan. The number of clusters is automatically determined by the algorithm based on the density of data points in the feature space.
However, the density and hence the number of resulting clusters may be indirectly controlled by adjusting the two parameters epsilon (defines the neighborhood search radius around a point) and minpts (the minimum number of neighbors required for a core point) of dbscan.

Image Analyst
Image Analyst am 27 Jun. 2023
Like @VM Sreeram said, you can't do that directlywith dbscan, though you could iterate varying the parameter until only two clusters are found.
Alternatively you can use kmeans where you can specify the desired number of clusters.

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by