lmcinnes / pynndescent

A Python nearest neighbor descent for approximate nearest neighbors
BSD 2-Clause "Simplified" License
899 stars 105 forks source link

`np.infty` replacement #241

Closed FBruzzesi closed 6 months ago

FBruzzesi commented 6 months ago

Description

AttributeError: np.infty was removed in the NumPy 2.0 release. Use np.inf instead.

We at scikit-lego use umap under the hood for an estimator and periodically run our test suite with the pre-release candidates.

Traced back the issue to pynndescent, and it seems there is only a single line that utilizes np.infty