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.8k stars 502 forks source link

Conversion of an array with ndim > 0 to a scalar is deprecated #647

Open jakirkham opened 3 months ago

jakirkham commented 3 months ago

Noticing this warning on CI:

hdbscan/tests/test_flat.py::test_flat_base_default PASSED                [  1%]
##[warning]Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
...
hdbscan/tests/test_flat.py::test_approx_predict_default PASSED           [  6%]
##[warning]Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
...
jakirkham commented 3 months ago

Looks like we may need the patch in comment: https://github.com/scikit-learn-contrib/hdbscan/issues/646#issuecomment-2244997593