From 9c49d3d1ec2e7c741e1b842b70247e7a1e083083 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jan 2023 16:40:10 +0100 Subject: [PATCH 1/7] 24873 --- doc/whats_new/v1.2.rst | 6 ++++++ doc/whats_new/v1.3.rst | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index b6b393ea28f66..67133d694f980 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -78,6 +78,12 @@ Changelog - |Fix| :class:`manifold.TSNE` now works correctly when output type is set to pandas :pr:`25370` by :user:`Tim Head `. +: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 1cffa16a7cbe2..01fb1c46e153a 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -138,13 +138,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` ....................... From 29528c100e29ffcfae9b61e98e537fabe1e7a5d2 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jan 2023 16:42:51 +0100 Subject: [PATCH 2/7] 25094 --- doc/whats_new/v1.2.rst | 6 ++++++ doc/whats_new/v1.3.rst | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index 67133d694f980..905e03dc0e258 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -64,6 +64,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` ........................... diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index 01fb1c46e153a..affe1072947a6 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -117,12 +117,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` .............................. From 4d688a56bf58b3dbef1bab0f375b29d140515f9e Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jan 2023 16:47:27 +0100 Subject: [PATCH 3/7] 23101 --- doc/whats_new/v1.2.rst | 8 ++++++++ doc/whats_new/v1.3.rst | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index 905e03dc0e258..321940edb55b2 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -84,6 +84,14 @@ 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` ............................. diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index affe1072947a6..1ec1586317e86 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -117,14 +117,6 @@ Changelog - |Enhancement| Added the parameter `fill_value` to :class:`impute.IterativeImputer`. :pr:`25232` by :user:`Thijs van Weezel `. -: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` .......................... From a194d76a5dd62ab10257d5dfd55588204b0b6c33 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jan 2023 16:52:28 +0100 Subject: [PATCH 4/7] 25174 --- doc/whats_new/v1.2.rst | 5 +++++ doc/whats_new/v1.3.rst | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index 321940edb55b2..33e8b17ed4dc4 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -22,6 +22,11 @@ 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 `. + Changelog --------- diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index 1ec1586317e86..26f0da759c532 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 ----------------------------- From 4bfc7b0495f1617a217e2d55ec89d213f78f6bb8 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jan 2023 17:11:28 +0100 Subject: [PATCH 5/7] 25089 --- doc/whats_new/v1.2.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index 33e8b17ed4dc4..26065ca7dc342 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -27,6 +27,9 @@ random sampling procedures. are strings. Predefined categories encoded as bytes will no longer work with `X` encoded as strings. :pr:`25174` by :user:`Tim Head `. +- |Fix| Support `pandas.Int64` dtyped `y` for classifiers and regressors. + :pr:`25089` by :user:`Tim Head `. + Changelog --------- From 875a3c5b91bd7b50a4dcc4553013b0c30296c4a5 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jan 2023 17:24:11 +0100 Subject: [PATCH 6/7] 25129 --- doc/whats_new/v1.2.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index 26065ca7dc342..1bbba4d07550c 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -30,6 +30,12 @@ random sampling procedures. - |Fix| Support `pandas.Int64` dtyped `y` for classifiers and regressors. :pr:`25089` by :user:`Tim Head `. +Changes impacting all modules +----------------------------- + +- |Fix| Remove spurious warnings for estimators internally using neighbors search methods. + :pr:`25129` by :user:`Julien Jerphanion `. + Changelog --------- From 996eefaa0abbc667f335e34848ca394ab87f7ec4 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Fri, 20 Jan 2023 17:11:20 +0100 Subject: [PATCH 7/7] DOC Move changelog entry for #25089 --- doc/whats_new/v1.2.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/whats_new/v1.2.rst b/doc/whats_new/v1.2.rst index 1bbba4d07550c..3bc338e68f5de 100644 --- a/doc/whats_new/v1.2.rst +++ b/doc/whats_new/v1.2.rst @@ -27,12 +27,12 @@ random sampling procedures. are strings. Predefined categories encoded as bytes will no longer work with `X` encoded as strings. :pr:`25174` by :user:`Tim Head `. -- |Fix| Support `pandas.Int64` dtyped `y` for classifiers and regressors. - :pr:`25089` 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 `.