Skip to content

[WIP] FIX make sure sample_weight has an effect on predictions#14266

Closed
glemaitre wants to merge 1 commit intoscikit-learn:mainfrom
glemaitre:is/check_diff_sample_weight
Closed

[WIP] FIX make sure sample_weight has an effect on predictions#14266
glemaitre wants to merge 1 commit intoscikit-learn:mainfrom
glemaitre:is/check_diff_sample_weight

Conversation

@glemaitre
Copy link
Copy Markdown
Member

Alternative/complement to #14246

Check that sample_weight change the prediction of the estimator. In case this is not true, it could be because of a bug.

@adrinjalali
Copy link
Copy Markdown
Member

Have you already checked why those estimators are failing? One would assume some of those failing estimators are definitely okay regarding sample weights, apparently not.

@jnothman
Copy link
Copy Markdown
Member

jnothman commented Jul 6, 2019 via email

@glemaitre
Copy link
Copy Markdown
Member Author

Have you already checked why those estimators are failing? One would assume some of those failing estimators are definitely okay regarding sample weights, apparently not.

I am looking at the different models which are failing to understand if this is normal or not.
Once I have a list of explanation we can see if we should have a common test or not.

@amueller amueller added the Needs Decision Requires decision label Aug 6, 2019
@amueller amueller added this to the 0.22 milestone Sep 19, 2019
@ogrisel ogrisel changed the title [WIP] FIX make sure sample_weight as an effect on predictions [WIP] FIX make sure sample_weight has an effect on predictions Oct 7, 2019
@jnothman jnothman modified the milestones: 0.22, 0.23 Oct 31, 2019
@thomasjpfan thomasjpfan modified the milestones: 0.23, 0.24 Apr 20, 2020
@cmarmo cmarmo removed this from the 0.24 milestone Oct 15, 2020
Base automatically changed from master to main January 22, 2021 10:51
@jeremiedbb
Copy link
Copy Markdown
Member

We now have a common test to check sample_weight implementation, #30137. Let's close this one

@jeremiedbb jeremiedbb closed this Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants