Skip to content

MNT Don't validate error messages when strict mode is off #18415

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

Merged
merged 5 commits into from
Sep 26, 2020

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Sep 16, 2020

Addresses #13969

This PR makes check_estimator(strict_mode=False) not validate the exact error message. The type of the exceptions is however still enforced.

Still left to do: docs and whatsnew entry (will do that in another PR, probably)

It would be better to have #18418 merged first

@NicolasHug NicolasHug changed the title [WIP] MNT Don't validate error messages when strict mode is off in check_estimator [MRG] MNT Don't validate error messages when strict mode is off in check_estimator Sep 16, 2020
@NicolasHug
Copy link
Member Author

CC @rth @amueller @jnothman

Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM, aside for the comment below.

)


def test_check_fit2d_1feature():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's exactly the same function as above?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost, but for different checks ;)
one checks samples the other checks features

@NicolasHug
Copy link
Member Author

Thanks @jnothman @rth for the reviews!

If you also have time to check out #18418 ... 🙏

@NicolasHug
Copy link
Member Author

Good to merge @rth? ;)

@rth rth changed the title [MRG] MNT Don't validate error messages when strict mode is off in check_estimator MNT Don't validate error messages when strict mode is off Sep 26, 2020
@rth rth merged commit a49032c into scikit-learn:master Sep 26, 2020
NicolasHug added a commit to NicolasHug/scikit-learn that referenced this pull request Sep 28, 2020
amrcode pushed a commit to amrcode/scikit-learn that referenced this pull request Oct 19, 2020
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants