Version 0.11.0#
July 8, 2023
Changelog#
Bug fixes#
Fix a bug in
classification_report_imbalancedwhere the parametertarget_nameswas not taken into account whenoutput_dict=True. #989 by AYY7.SMOTENCnow handles mix types of data type such asboolandpd.categoryby delegating the conversion to scikit-learn encoder. #1002 by Guillaume Lemaitre.Handle sparse matrices in
SMOTENand raise a warning since it requires a conversion to dense matrices. #1003 by Guillaume Lemaitre.Remove spurious warning raised when minority class get over-sampled more than the number of sample in the majority class. #1007 by Guillaume Lemaitre.
Compatibility#
Maintenance release for being compatible with scikit-learn >= 1.3.0. #999 by Guillaume Lemaitre.
Deprecation#
The fitted attribute
ohe_inSMOTENCis deprecated and will be removed in version 0.13. Usecategorical_encoder_instead. #1000 by Guillaume Lemaitre.The default of the parameters
sampling_strategy,bootstrapandreplacementwill change inBalancedRandomForestClassifierto follow the implementation of the original paper. This changes will take effect in version 0.13. #1006 by Guillaume Lemaitre.
Enhancements#
SMOTENCnow accepts a parametercategorical_encoderallowing to specify aOneHotEncoderwith custom parameters. #1000 by Guillaume Lemaitre.SMOTENnow accepts a parametercategorical_encoderallowing to specify aOrdinalEncoderwith custom parameters. A new fitted parametercategorical_encoder_is exposed to access the fitted encoder. #1001 by Guillaume Lemaitre.RandomUnderSamplerandRandomOverSampler(whenshrinkage is not None) now accept any data types and will not attempt any data conversion. #1004 by Guillaume Lemaitre.SMOTENCnow support passing array-like ofstrwhen passing thecategorical_featuresparameter. #1008 by :user`Guillaume Lemaitre <glemaitre>`.SMOTENCnow support automatic categorical inference whencategorical_featuresis set to"auto". #1009 by :user`Guillaume Lemaitre <glemaitre>`.