Latest umap-learn 0.5.3 is not compatible with latest numpy 1.24.3
Open
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 871
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 5
Description
Umap uses `np.int` in `umap/umap_.py` line 2465 and `np.float` in line 2467. However these have been removed so the code fails. The error messages suggested replacing them with a simple `int` and `float`. This fix worked for me.
Contributor guide
Research direction
Open umap/umap_.py and inspect the code around lines 2465 and 2467, where the issue reports uses of removed NumPy aliases. Confirm the failure with NumPy 1.24.3, then verify that those two usages no longer trigger the reported compatibility error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100