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 507 forks source link

The value of the smallest subnormal for <class 'numpy.float64'> type is zero. #595

Open OlgaGKononova opened 1 year ago

OlgaGKononova commented 1 year ago

After installation of hdbscan, getting bunch of warnings:

lib/python3.9/site-packages/numpy/core/getlimits.py:499: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
lib/python3.9/site-packages/numpy/core/getlimits.py:499: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  return self._float_to_str(self.smallest_subnormal)

From what I understand, this comes from compiling C code.

Current numpy version 1.25, downgrading numpy doesn't help to solve the issue.

tpelc2 commented 1 year ago

having the same issue

lmcinnes commented 1 year ago

This seems to potentially relate to some changes in Cython and or numpy; it is very hard to know or track down exactly where in the hdbscan code this is actually getting triggered.