-
Notifications
You must be signed in to change notification settings - Fork 128
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
Fix failing mlr
diagnostic test
#3271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so indeed this is an aftereffect of the new scikit-learn=1.3.0 (just tested for this myself) - cheers for the fix, Remi, it looks fine to me - we may have to tell @schlunma the new version 1.3.0 seems to be a bit buggy (have seen at least one breaking change, undocumented, rased as an issue there), also scipy moved to 1.11.1 that may affect scikit-learn
@bouweandela if you could please have a looksee and merge, this will have brought all our tests to green now that Conda install for py39 works again (by means of yanking scipy 1.11.0 and replacing it with 1.11.1 - yes they really yanked 1.11.0) 🟢 |
@remi-kazeroni Thanks for fixing the problem! Would it be possible to add a brief explanation of why this change is needed? |
for @remi-kazeroni - I suspect the need to specify that kwarg to be a bug - was introduced in scikit-learn/scikit-learn#26372 AFAICS but that should be picked up as default - looking at the Changelog it looks like that PR has not made it through to the 1.3 release? |
Fully agreed with @valeriupredoi. I don't understand why this particular tag is not picked up as default. It is indeed in the released version, see here. I'm afraid I don't have a good explanation for that, all I could figure out is already in the description of that PR. @bouweandela - if you like, we could open an issue to ask @schlunma to double check (and maybe improve) this fix once he's back to work. If there is a bug on the dependency side, we could then report upstream. |
am with Remi 👍 |
It looks like our code contains a copy of ESMValTool/esmvaltool/diag_scripts/mlr/custom_sklearn.py Lines 88 to 107 in 776135a
I could also get the tests to pass by updating our copy of |
if we are going the safe route, and stop being dashing and glamorous, then I would rather pin scikit-learn <1.3.0 - it looks like that new version contains a few landmines for others too 👍 |
Agreed. Since we don't have @schlunma with us this week to check whether his recipes are affected by this latest version of |
I propose the following, pending approval from the RM (le @bouweandela ) and RM-junior (le @remi-kazeroni ):
What say you guys? |
After all trouble we had last month getting rid of some upper pins, I'm not keen to introduce new ones. I'm planning to run all recipes again anyway before the release, so let's not jump to conclusions about pinning here. |
the " 🍍 -Agnostic RM" 🤣 Suits me fine, but we must either xfail the test or plop this workaround otherwise Lady Conda will be groaning and moaning |
Not needed |
Description
Adding
'array_api_support': False,
to the list ofDEFAULT_TAGS
in the failing testtest_safe_tags_no_get_tags
seems to fix the issue locally and allows to use the latest version (scikit-learn 1.3.0
).Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number of pull requests: