-
Notifications
You must be signed in to change notification settings - Fork 535
Fix error when using TabPFN as part of a pipeline #135
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
Conversation
|
Why does it fail in a pipeline for sklearn<1.4.2? This is a pretty huge version bump (limiting to April 2024+), so I would rather fix the problem than bump the version this much at this point. Otherwise the tests look good to me. |
|
Looking more into it, could it be something related to numpy 2? Does any other requirement force us to numpy 2 🤔 |
|
#116 seems very related now |
|
Thanks Lennart! Actually the minimum working version is 1.4.1.post1 (February 2024) not 1.4.2, so a bit better but still pretty recent. Doesn't seem related to numpy version as it works both for numpy 1.26 and numpy 2. |
|
@LennartPurucker #116 says numpy should be below 2, not numpy 2 required |
|
It's great to have this test in here @LeoGrin ! I agree, that if possible we fix whatever causes the issue rn, maybe it's just one small change |
|
Here's the test error for sklearn=1.4.0, I'm looking into this right now. |
|
I think it might be this scikit-learn/scikit-learn#28262 |
…sh back minimum sklearn to 1.2.0
|
Found a fix (replacing I pushed back the minimum version of |
|
Perfect, very nice, thank you @LeoGrin! |
LennartPurucker
left a comment
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.
LGTM!
|
Feel free to merge at your convenience. |
…l. (#135) * Record copied public PR 492 * Forward cache_trainset_representation to load_model. (#492) (cherry picked from commit 54fd7e6) --------- Co-authored-by: mirror-bot <[email protected]> Co-authored-by: Phil <[email protected]>
Increase minimum scikit-learn versiont to fix error when using TabPFN as part of a pipeline
TabPFN fails when used as part of a sklearn pipeline for sklearn's version older than 1.4.2.
This PR adds tests which fails for these older versions and bump the minimum sklearn version to 1.4.2 in the pytoml.