Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Numpy 2.0 compatibility #6850

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ales-erjavec
Copy link
Contributor

@ales-erjavec ales-erjavec commented Jul 11, 2024

Issue

Numpy 2.0 compatibility

Currently numpy 2.0 support is still missing in catboost.

Description of changes

np.float_ -> np.float64
np.NaN -> np.nan
np.ndarray.ptp -> np.ptp
np.in1d -> np.isin
np.row_stack -> np.vstack

Replace oldest-supported-numpy with numpy>2.0 in the build dependencies. This is the new preferred way.

Includes
  • Code changes
  • Tests
  • Documentation

np.float_ -> np.float64
np.NaN -> np.nan
np.ndarray.ptp -> np.ptp
np.in1d -> np.isin
np.row_stack -> np.vstack
@ales-erjavec ales-erjavec changed the title [MNT] Numpy 2.0 compatibility [ENH] Numpy 2.0 compatibility Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant