-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST check sample_weight shape added to common tests #11598
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
TST check sample_weight shape added to common tests #11598
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 @sergulaydore and sorry this didn't get much review at the time.
I pushed a few changes to take into account updates in the code base and removed a few checks made redundant by this common check.
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.
Thank you for working on this @sergulaydore !
LGTM
Reference Issues/PRs
Fixes #9926 (Ensure that the shape of sample_weight is checked in all the functions)
What does this implement/fix? Explain your changes.
I added a new check that makes sure an error is raised if the shape of the
sample_weight
is different than the sample size. Two estimators were missing the test so I added a test to those estimators.Any other comments?
No