feature_engine icon indicating copy to clipboard operation
feature_engine copied to clipboard

should we make sample_weight part of fit?

Open solegalli opened this issue 3 years ago • 0 comments

Some sklearn transformers have an extra parameter in fit, the sample_weight, to tackle imbalanced datasets.

Should we make this part of feature_engine?

Example: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html

Need to think if it is useful for most transformers, or alternatively, for which transformers it makes sense

Also, need to have an idea of how many of sklearn transformers have sample_weight, because for example, the simpleImputer does not seem to have it

solegalli avatar Apr 23 '21 07:04 solegalli