0.17.0 - 2023-05-27¶
bandit¶
- Bandit policies now return a single arm when the
pullmethod is called, instead of yielding or one more arms at a time. This is simpler to understand. We will move back to multi-armed pulls in the future. - Added
bandit.Exp3. bandit.UCBandbandit.Exp3have an extrareward_scalerparameter, which can be any object that inherits fromcompose.TargetTransformRegressor. This allows scaling rewards before updating arms.
compose¶
compose.TransformerProductnow correctly returns acompose.TransformerUnionwhen a transformer is added to it.- Fixed
compose.TransformerProduct'stransform_manybehavior. compose.TransformerUnionandcompose.TransformerProductwill now clone the provided estimators, so that shallow copies aren't shared in different places.
model_selection¶
- Added
model_selection.BanditClassifier, which is the classification equivalent tobandit.BanditRegressor. Both are methods to perform online model selection via a bandit policy.
multioutput¶
metrics.multioutput.MacroAverageandmetrics.multioutput.MicroAveragenow loop over the keys ofy_trueinstead ofy_pred. This ensures aKeyErroris correctly raised ify_predis missing an output that is present iny_true.
preprocessing¶
- Added
preprocessing.TargetMinMaxScaler, which operates the same aspreprocessing.TargetStandardScaler, but instead uses min-max scaling.