0.17.0 - 2023-05-27¶
bandit¶
- Bandit policies now return a single arm when the
pull
method 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.UCB
andbandit.Exp3
have an extrareward_scaler
parameter, which can be any object that inherits fromcompose.TargetTransformRegressor
. This allows scaling rewards before updating arms.
compose¶
compose.TransformerProduct
now correctly returns acompose.TransformerUnion
when a transformer is added to it.- Fixed
compose.TransformerProduct
'stransform_many
behavior. compose.TransformerUnion
andcompose.TransformerProduct
will 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.MacroAverage
andmetrics.multioutput.MicroAverage
now loop over the keys ofy_true
instead ofy_pred
. This ensures aKeyError
is correctly raised ify_pred
is missing an output that is present iny_true
.
preprocessing¶
- Added
preprocessing.TargetMinMaxScaler
, which operates the same aspreprocessing.TargetStandardScaler
, but instead uses min-max scaling.