From 4162ade89a1e2f0c8daacc5816eb2b240607d6a6 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Fri, 20 Jan 2023 17:43:51 +0100 Subject: [PATCH] DOC Update changelog before the 1.2.1 release (#25436) --- doc/whats_new/v1.2.rst | 34 ++++++++++++++++++++++++++++++++++ doc/whats_new/v1.3.rst | 26 -------------------------- 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index b6b393ea28f66..3bc338e68f5de 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -22,6 +22,20 @@ random sampling procedures. into account. :pr:`25354` by :user:`Jérémie du Boisberranger `. +- |Fix| The `categories_` attribute of :class:`preprocessing.OneHotEncoder` now + always contains an array of `object`s when using predefined categories that + are strings. Predefined categories encoded as bytes will no longer work + with `X` encoded as strings. :pr:`25174` by :user:`Tim Head `. + +Changes impacting all modules +----------------------------- + +- |Fix| Support `pandas.Int64` dtyped `y` for classifiers and regressors. + :pr:`25089` by :user:`Tim Head `. + +- |Fix| Remove spurious warnings for estimators internally using neighbors search methods. + :pr:`25129` by :user:`Julien Jerphanion `. + Changelog --------- @@ -64,6 +78,12 @@ Changelog and :class:`ensemble.ExtraTreesRegressor` now support sparse readonly datasets. :pr:`25341` by :user:`Julien Jerphanion ` +:mod:`sklearn.feature_extraction` +................................. + +- |Fix| :class:`feature_extraction.FeatureHasher` raises an informative error + when the input is a list of strings. :pr:`25094` by `Thomas Fan`_. + :mod:`sklearn.linear_model` ........................... @@ -78,6 +98,20 @@ Changelog - |Fix| :class:`manifold.TSNE` now works correctly when output type is set to pandas :pr:`25370` by :user:`Tim Head `. +:mod:`sklearn.model_selection` +.............................. + +- |Fix| :func:`model_selection.cross_validate` with multimetric scoring in + case of some failing scorers the non-failing scorers now returns proper + scores instead of `error_score` values. + :pr:`23101` by :user:`András Simon ` and `Thomas Fan`_. + +:mod:`sklearn.neural_network` +............................. + +- |Fix| :class:`neural_network.MLPClassifier` and :class:`neural_network.MLPRegressor` + no longer raise warnings when fitting data with feature names. + :pr:`24873` by :user:`Tim Head `. :mod:`sklearn.preprocessing` ............................ diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index a0ea72c23c8a3..3b24ac2a35c39 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -29,11 +29,6 @@ random sampling procedures. `transform_algorithm` is not the same as `fit_algorithm` and the number of iterations is small. :pr:`24871` by :user:`Omar Salman `. -- |Fix| The `categories_` attribute of :class:`preprocessing.OneHotEncoder` now - always contains an array of `object`s when using predefined categories that - are strings. Predefined categories encoded as bytes will no longer work - with `X` encoded as strings. :pr:`25174` by :user:`Tim Head `. - Changes impacting all modules ----------------------------- @@ -123,20 +118,6 @@ Changelog - |Enhancement| Added the parameter `fill_value` to :class:`impute.IterativeImputer`. :pr:`25232` by :user:`Thijs van Weezel `. -:mod:`sklearn.feature_extraction` -................................. - -- |Fix| :class:`feature_extraction.FeatureHasher` raises an informative error - when the input is a list of strings. :pr:`25094` by `Thomas Fan`_. - -:mod:`sklearn.model_selection` -.............................. - -- |Fix| :func:`model_selection.cross_validate` with multimetric scoring in - case of some failing scorers the non-failing scorers now returns proper - scores instead of `error_score` values. - :pr:`23101` by :user:`András Simon ` and `Thomas Fan`_. - :mod:`sklearn.naive_bayes` .......................... @@ -144,13 +125,6 @@ Changelog when the provided `sample_weight` reduces the problem to a single class in `fit`. :pr:`24140` by :user:`Jonathan Ohayon ` and :user:`Chiara Marmo `. -:mod:`sklearn.neural_network` -............................. - -- |Fix| :class:`neural_network.MLPClassifier` and :class:`neural_network.MLPRegressor` - no longer raise warnings when fitting data with feature names. - :pr:`24873` by :user:`Tim Head `. - :mod:`sklearn.pipeline` .......................