-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
BUG Ignores tags when estimator is a class in parametrize_with_checks #16709
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
BUG Ignores tags when estimator is a class in parametrize_with_checks #16709
Conversation
It doesn't seem natural to me to ignore the tags when we pass a class |
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, thanks @thomasjpfan !
# try to construct estimator to get tags, if it is unable to then | ||
# return the estimator class | ||
try: | ||
xfail_checks = _safe_tags(_construct_instance(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.
_construct_instance
is potentially costly, but I also don't see a way around it.
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.
I'm not concerned given our conventions
Reference Issues/PRs
Fixes #16707
What does this implement/fix? Explain your changes.
Ignores the tags when estimator is a class in
parametrize_with_checks
CC @rth