.. _changes_0_11:

Version 0.11.0 (Under development)
==================================

Changelog
---------

Bug fixes
.........

- :class:`~imblearn.over_sampling.SMOTENC` now handles mix types of data type such as
  `bool` and `pd.category` by delegating the conversion to scikit-learn encoder.
  :pr:`1002` by :user:`Guillaume Lemaitre <glemaitre>`.

- Handle sparse matrices in :class:`~imblearn.over_sampling.SMOTEN` and raise a warning
  since it requires a conversion to dense matrices.
  :pr:`1003` by :user:`Guillaume Lemaitre <glemaitre>`.

Compatibility
.............

- Maintenance release for being compatible with scikit-learn >= 1.3.0.
  :pr:`999` by :user:`Guillaume Lemaitre <glemaitre>`.

Deprecation
...........

- The fitted attribute `ohe_` in :class:`~imblearn.over_sampling.SMOTENC` is deprecated
  and will be removed in version 0.13. Use `categorical_encoder_` instead.
  :pr:`1000` by :user:`Guillaume Lemaitre <glemaitre>`.

Enhancements
............

- :class:`~imblearn.over_sampling.SMOTENC` now accepts a parameter `categorical_encoder`
  allowing to specify a :class:`~sklearn.preprocessing.OneHotEncoder` with custom
  parameters.
  :pr:`1000` by :user:`Guillaume Lemaitre <glemaitre>`.

- :class:`~imblearn.over_sampling.SMOTEN` now accepts a parameter `categorical_encoder`
  allowing to specify a :class:`~sklearn.preprocessing.OrdinalEncoder` with custom
  parameters. A new fitted parameter `categorical_encoder_` is exposed to access the
  fitted encoder.
  :pr:`1001` by :user:`Guillaume Lemaitre <glemaitre>`.
