-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use sklearn 1.4 or above #271
base: main
Are you sure you want to change the base?
Conversation
Some tests are failing, maybe is too early for requiring at least sklearn 1.4.0? |
Thanks for this? Do you know what version change was implemented in? |
I am not sure I understand the question. Can confirm that the info in my original comment does not already answer it? |
Sorry - should have read better🤦🏾♂️ I think the issue is that we need to change to python ^3.9: https://github.com/sustainable-processes/summit/actions/runs/11406460445/job/31740294173?pr=271 This can be done in |
I think this needs to also be changed: summit/.github/workflows/ci.yml Line 43 in 1de682d
|
Done. Now I observed a failure as this line
does not provide to I have no idea of what that is. But it accepts a None value, so I am going to try with that. Please advise if None here is a bad idea. |
I think you need to pass an empty dictionary? i.e., |
Now it fails as we are providing a dict for scorer but scorer cannot be a dict anymore since this edit: They moved the dict conversion code to these lines: The change happened with sklearn 1.5.0. |
…n._score so we have to do it
There is still one error that gets raised at these lines: And it happens when running the example from
|
I think that example should just be removed - sorry for the slow response and thanks for working through this! |
Thank you indeed for the very useful and open source tool :D |
Do you want to remove the LogSpaceObjectives docstring example? I would do it on another PR but that would fail because of the other issues in this PR not being fixed |
In the previous step, the But now the tests are failing for a weird new reason:
|
In the workflow run there are some warnings that maybe are useful for identifying the error: |
Ahh I see - I'll put in fixes for these tomorrow. Thanks! After that, you should be able to rebase on top |
In sklearn 1.4.0,
sklearn.utils.validation._check_fit_params
has been renamed tosklearn.utils.validation._check_method_params
, with this commit.sklearn.utils.fixes.delayed
has been moved tosklearn.utils.parallel.delayed
(in sklearn 1.3?) and the pointer that remained in fixes was finally removed in 1.5.0.