Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_cluster_size parameter does not work #617

Open
giovannicozzolongo opened this issue Nov 9, 2023 · 0 comments
Open

max_cluster_size parameter does not work #617

giovannicozzolongo opened this issue Nov 9, 2023 · 0 comments

Comments

@giovannicozzolongo
Copy link

giovannicozzolongo commented Nov 9, 2023

I am trying to apply HDBSCAN to a dataset called X in order to find clusters with a certain maximum size (e.g. 5), but the max_cluster_size parameter is not working (i.e. the result contains clusters bigger than 5).

param = {"cut_distance": 0.01}
hdb = HDBSCAN(max_cluster_size=5)
hdb.fit(X)
labels = hdb.dbscan_clustering(**param)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant