Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MAINT Common sample_weight validation #14307
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
MAINT Common sample_weight validation #14307
Changes from all commits
9800b4b
95df187
c889db3
bd52cfc
9e108a4
4ff292d
bb64a9b
29e4ff6
4d7bb15
1c0f6a7
59abc05
84b0ac0
4ea0694
cfc7a97
908bbfc
c6280b6
2b84f90
d81fec1
b2b1773
22f9275
c28226a
ed2dc69
0ce20bc
380d9eb
3fa5f73
08e204f
44d99c1
3fc9d1a
22e1070
561bb6a
71ecf65
e244ad5
13f9dec
9cccaf6
fb22cfc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 pretty sure this didn't produce sample weights with the expected dtype when
y
was an integer array.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.
Maybe add a test for the shape difference error? (it's implicitly tested in kmeans)