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

Requirement: numpy<2.0.0 #1375

Open
josk0 opened this issue Jul 12, 2024 · 5 comments
Open

Requirement: numpy<2.0.0 #1375

josk0 opened this issue Jul 12, 2024 · 5 comments

Comments

@josk0
Copy link

josk0 commented Jul 12, 2024

Should the numpy<2.0.0 requirement be followed throughout? It is stated in docs/requirements.txt but not in setup.py.

Very new to this, but it seems this creates a potential dependency problem since lale is incompatible with numpy 2.0 (e.g. use of np.NaN in lale/lib/xgboost/xgb_classifier.py", line 792)

@rootsmusic
Copy link

rootsmusic commented Jul 14, 2024

xgboost 2.1.0 is compatible with numpy 2.0, but I don't believe lale 0.8.2 is.

@josk0
Copy link
Author

josk0 commented Jul 14, 2024

Yes, the wrapper is the/one issue. So requirements maybe should be adjusted. I just don’t know that’s done…

@hirzel
Copy link
Member

hirzel commented Jul 15, 2024

Hi, thank you for raising this issue! Instead of constraining the numpy version everywhere, it might be better to update the XGBoost wrapper to work with numpy 2.0.0. Would you like to try that?

Numpy 2.0.0 was released on PyPI on June 16th. After that, the Lale tests from July 3rd succeeded without an upper bound on numpy. And some of the tests explicitly install the newest numpy version, in this case, 2.0.0.

@rootsmusic
Copy link

And some of the tests explicitly install the newest numpy version, in this case, 2.0.0.

@hirzel That test pinned numpy for snapml, so I'm assuming that snapml isn't compatible with numpy 2.0 yet?

@hirzel
Copy link
Member

hirzel commented Jul 15, 2024

@rootsmusic The test I linked above (test_newer) does not pin numpy for SnapML. There are some other tests that do, because at the time they were written, SnapML had these restrictions. It is possible that the newest SnapML no longer has these restrictions, which would require an experiment to check.

shinnar added a commit that referenced this issue Aug 6, 2024
the latest release of mystic does not yet support numpy>=2.0.
At least one of the issues has been fixed in master: uqfoundation/mystic#248
and there is an issue for completing the migration: uqfoundation/mystic#249

This addresses #1375

Signed-off-by: Avi Shinnar <[email protected]>
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

No branches or pull requests

3 participants