-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FIX wrong usage and occurrence of string tag #14043
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.
Thanks for catching this!
.... can we add some tag validation in check_estimator??? |
I thought about that, but then it means that if some contrib packages add their own tags |
In |
What we actually should be doing is using these tags to generate data and run the tests with this generated data. |
+1 |
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.
let's merge this one first?
sklearn/utils/estimator_checks.py
Outdated
@@ -663,7 +663,8 @@ def check_dtype_object(name, estimator_orig): | |||
if "Unknown label type" not in str(e): | |||
raise | |||
|
|||
if 'str' not in tags['X_types']: | |||
tags = _safe_tags(estimator) |
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.
this seems redundant?
We already have |
Codecov Report
@@ Coverage Diff @@
## master #14043 +/- ##
=======================================
Coverage 96.81% 96.81%
=======================================
Files 393 393
Lines 71911 71911
Branches 7887 7887
=======================================
Hits 69623 69623
Misses 2265 2265
Partials 23 23
Continue to review full report at Codecov.
|
Oh I see. Sorry about that. I did not see it. |
The right tag to use should be
string
and notstr
. However, there are 2 occurrences within the code base.I am unsure if we should backport this in 0.21.3