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

TypeError encountered #608

Open
jeongwon71 opened this issue Aug 3, 2023 · 2 comments
Open

TypeError encountered #608

jeongwon71 opened this issue Aug 3, 2023 · 2 comments

Comments

@jeongwon71
Copy link

Hi, I tried HDBSCAN with simple example dataset, but it throws TypeError.

`from sklearn.datasets import make_blobs
data, _ = make_blobs(1000)

import hdbscan

clusterer = hdbscan.HDBSCAN()
cluster_labels = clusterer.fit_predict(data)`

And the TypeError says

File hdbscan\_hdbscan_tree.pyx:659, in hdbscan._hdbscan_tree.get_clusters()

File hdbscan\_hdbscan_tree.pyx:733, in hdbscan._hdbscan_tree.get_clusters()

TypeError: 'numpy.float64' object cannot be interpreted as an integer

I have no idea why this error occurs.

@kadougherty
Copy link

I am currently having the exact same issue.

@FinnHuelsbusch
Copy link

Seems like a duplicate of #607. Maybe the suggested fix helps you.

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

3 participants