필터 지우기
필터 지우기

specify the number of clusters in dbscan

조회 수: 5 (최근 30일)
bana althawabteh
bana althawabteh 2021년 2월 13일
답변: Image Analyst 2023년 6월 27일
how to specify the number of clusters in dbscan please ????

답변 (2개)

VM Sreeram
VM Sreeram 2023년 6월 27일
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 2023년 6월 27일
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.

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by