scikit-learn-contrib / hdbscan

A high performance implementation of HDBSCAN clustering.
http://hdbscan.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.81k stars 505 forks source link

TypeError encountered #608

Open jeongwon71 opened 1 year ago

jeongwon71 commented 1 year ago

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

`from sklearn.datasets import makeblobs 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 commented 1 year ago

I am currently having the exact same issue.

FinnHuelsbusch commented 1 year ago

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