-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FIX warn if an estimator does have a concrete __sklearn_tags__ implementation #30516
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
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.
didnt understand how did you fix that bug
Co-authored-by: Adrin Jalali <[email protected]>
Co-authored-by: Adrin Jalali <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
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.
Co-authored-by: Adrin Jalali <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
So we intend to always raise and require inheriting from BaseEstimator in 1.7 ? Let's mention the version in the warning message and add a comment to remind us to clean up in 1.7 |
Not really, you could just implement |
I modify the warning slightly to add the version for erroring and discourage defining |
Co-authored-by: Jérémie du Boisberranger <[email protected]>
When will this be updated in the library on Google Colab? I just ran into this issue when I was trying to use it with the skorch library. I am unfamiliar with the timeline these fixes are corrected. |
…entation (scikit-learn#30516) Co-authored-by: Adrin Jalali <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
…entation (scikit-learn#30516) Co-authored-by: Adrin Jalali <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
…entation (#30516) Co-authored-by: Adrin Jalali <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
closes #30479
Catch the error in the case that there is no
__sklearn_tags__
implementation in the MRO. We return the default tags and request to inherit fromBaseEstimator
that implements it.