-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
LiorxCohen
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.
didnt understand how did you fix that bug
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
adrinjalali
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.
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
|
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 <jeremie@probabl.ai>
|
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 <adrin.jalali@gmail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…entation (scikit-learn#30516) Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…entation (#30516) Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
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 fromBaseEstimatorthat implements it.