Skip to content

MAPIE's sample_weight vs sklearn's sample_weight in the fit method #362

Closed Answered by thibaultcordier
CarlaFernandez asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @CarlaFernandez,

TL;DR: These parameters are the same for MAPIE and scikit-learn in fit method.

Indeed, MapieRegressor or other MAPIE classes have been implemented to be scikit-learn compatible with commonly used terms. In particular, sample_weight is used in MAPIE specifically in the utility function fit_estimator that depends on your model estimator.

In other words, if you simply wrap MAPIE around your original model which relies on sample_weight, it will be the same internally (direct transmission of sample_weight parameter).

Some additionnal links:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thibaultcordier
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants