From 83d2e81f42db1ff2824ef9dbf52549b87be6218e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 30 Jul 2019 17:17:05 +0200 Subject: [PATCH 01/20] Deprecated 'copy' in TfidfVectorizer.transform --- sklearn/feature_extraction/text.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index b19431ea67f58..01b247030cd04 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1666,7 +1666,7 @@ def fit_transform(self, raw_documents, y=None): # we set copy to False return self._tfidf.transform(X, copy=False) - def transform(self, raw_documents, copy=True): + def transform(self, raw_documents, copy="deprecated"): """Transform documents to document-term matrix. Uses the vocabulary and document frequencies (df) learned by fit (or @@ -1681,13 +1681,22 @@ def transform(self, raw_documents, copy=True): Whether to copy X and operate on the copy or perform in-place operations. + .. deprecated:: 0.21 + The `copy` parameter was deprecated in version 0.21 and will + be removed in 0.23. This parameter will be ignored Returns ------- X : sparse matrix, [n_samples, n_features] Tf-idf-weighted document-term matrix. """ check_is_fitted(self, '_tfidf', 'The tfidf vector is not fitted') - + # FIXME Remove copy parameter support in 0.23 ------------------------- + if copy == "deprecated": + msg = ("'copy' param has been deprecated since version 0.21." + " Backward compatibility for 'copy' will be removed in" + " 0.23.") + warnings.warn(msg, DeprecationWarning) + # --------------------------------------------------------------------- X = super().transform(raw_documents) return self._tfidf.transform(X, copy=False) From 142747a3d5adbd5be831b9dfb946deeec43141f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Wed, 31 Jul 2019 15:54:10 +0200 Subject: [PATCH 02/20] Update text.py --- sklearn/feature_extraction/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 01b247030cd04..1c8f051d6838a 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1691,7 +1691,7 @@ def transform(self, raw_documents, copy="deprecated"): """ check_is_fitted(self, '_tfidf', 'The tfidf vector is not fitted') # FIXME Remove copy parameter support in 0.23 ------------------------- - if copy == "deprecated": + if copy != "deprecated": msg = ("'copy' param has been deprecated since version 0.21." " Backward compatibility for 'copy' will be removed in" " 0.23.") From 7eb23f13734278445ddfcf239c72cc2d7cbe271f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Wed, 31 Jul 2019 16:22:58 +0200 Subject: [PATCH 03/20] Update text.py --- sklearn/feature_extraction/text.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 1c8f051d6838a..fb064b9bcf3c6 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1681,9 +1681,10 @@ def transform(self, raw_documents, copy="deprecated"): Whether to copy X and operate on the copy or perform in-place operations. - .. deprecated:: 0.21 - The `copy` parameter was deprecated in version 0.21 and will - be removed in 0.23. This parameter will be ignored + .. deprecated:: 0.21 + The `copy` parameter was deprecated in version 0.21 and + will be removed in 0.23. This parameter will be ignored + Returns ------- X : sparse matrix, [n_samples, n_features] From b5858f09fd9d3f7640ebdd900264c75b0682789f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Wed, 31 Jul 2019 17:09:30 +0200 Subject: [PATCH 04/20] Update text.py --- sklearn/feature_extraction/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index fb064b9bcf3c6..46b2c6074da62 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1691,13 +1691,13 @@ def transform(self, raw_documents, copy="deprecated"): Tf-idf-weighted document-term matrix. """ check_is_fitted(self, '_tfidf', 'The tfidf vector is not fitted') - # FIXME Remove copy parameter support in 0.23 ------------------------- + + # FIXME Remove copy parameter support in 0.23 if copy != "deprecated": msg = ("'copy' param has been deprecated since version 0.21." " Backward compatibility for 'copy' will be removed in" " 0.23.") warnings.warn(msg, DeprecationWarning) - # --------------------------------------------------------------------- X = super().transform(raw_documents) return self._tfidf.transform(X, copy=False) From 70a2e83379260d7f6e47a56f9c1e38698619633c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Wed, 31 Jul 2019 17:18:17 +0200 Subject: [PATCH 05/20] Added test --- sklearn/feature_extraction/tests/test_text.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index 59ddcb5fa1ac3..f7ac31ff04651 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -504,6 +504,18 @@ def test_tfidf_vectorizer_setters(): assert tv._tfidf.sublinear_tf +# FIXME Remove copy parameter support in 0.23 +def test_tfidf_vectorizer_deprecationwarning(): + msg = ("'copy' param has been deprecated since version 0.21." + " Backward compatibility for 'copy' will be removed in" + " 0.23.") + with pytest.warns(DeprecationWarning, match=msg): + tv = TfidfTransformer() + train_data = iter(JUNK_FOOD_DOCS) + tv.fit(train_data) + tv.transform(train_data, copy=True) + + @fails_if_pypy def test_hashing_vectorizer(): v = HashingVectorizer() From 2c6cb55f65bcac2cf2f07daa8c68ef2f0d623ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Thu, 1 Aug 2019 15:16:50 +0200 Subject: [PATCH 06/20] Update sklearn/feature_extraction/tests/test_text.py Co-Authored-By: Andreas Mueller --- sklearn/feature_extraction/tests/test_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index f7ac31ff04651..8bac4f314ae3d 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -510,7 +510,7 @@ def test_tfidf_vectorizer_deprecationwarning(): " Backward compatibility for 'copy' will be removed in" " 0.23.") with pytest.warns(DeprecationWarning, match=msg): - tv = TfidfTransformer() + tv = TfidfVectorizer() train_data = iter(JUNK_FOOD_DOCS) tv.fit(train_data) tv.transform(train_data, copy=True) From 26eb579db966891ed81c4320159c5ad0ad7cad8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Thu, 1 Aug 2019 16:26:34 +0200 Subject: [PATCH 07/20] Update test_text.py --- sklearn/feature_extraction/tests/test_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index 8bac4f314ae3d..9d71e40039548 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -511,7 +511,7 @@ def test_tfidf_vectorizer_deprecationwarning(): " 0.23.") with pytest.warns(DeprecationWarning, match=msg): tv = TfidfVectorizer() - train_data = iter(JUNK_FOOD_DOCS) + train_data = JUNK_FOOD_DOCS tv.fit(train_data) tv.transform(train_data, copy=True) From bb7b3666320ea9cc9007ff0d461635c01a3a89e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Sun, 4 Aug 2019 21:54:50 +0200 Subject: [PATCH 08/20] Update test_text.py --- sklearn/feature_extraction/tests/test_text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index 9d71e40039548..cf5e943cbaed9 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -504,11 +504,11 @@ def test_tfidf_vectorizer_setters(): assert tv._tfidf.sublinear_tf -# FIXME Remove copy parameter support in 0.23 +# FIXME Remove copy parameter support in 0.24 def test_tfidf_vectorizer_deprecationwarning(): - msg = ("'copy' param has been deprecated since version 0.21." + msg = ("'copy' param has been deprecated since version 0.22." " Backward compatibility for 'copy' will be removed in" - " 0.23.") + " 0.24.") with pytest.warns(DeprecationWarning, match=msg): tv = TfidfVectorizer() train_data = JUNK_FOOD_DOCS From ba8c36a67b58e71aca1195320a0cca5e6a046282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Sun, 4 Aug 2019 21:55:38 +0200 Subject: [PATCH 09/20] Update text.py --- sklearn/feature_extraction/text.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 46b2c6074da62..1d818bc54f7af 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1681,9 +1681,9 @@ def transform(self, raw_documents, copy="deprecated"): Whether to copy X and operate on the copy or perform in-place operations. - .. deprecated:: 0.21 - The `copy` parameter was deprecated in version 0.21 and - will be removed in 0.23. This parameter will be ignored + .. deprecated:: 0.24 + The `copy` parameter was deprecated in version 0.22 and + will be removed in 0.24. This parameter will be ignored Returns ------- @@ -1692,11 +1692,11 @@ def transform(self, raw_documents, copy="deprecated"): """ check_is_fitted(self, '_tfidf', 'The tfidf vector is not fitted') - # FIXME Remove copy parameter support in 0.23 + # FIXME Remove copy parameter support in 0.24 if copy != "deprecated": - msg = ("'copy' param has been deprecated since version 0.21." + msg = ("'copy' param has been deprecated since version 0.22." " Backward compatibility for 'copy' will be removed in" - " 0.23.") + " 0.24.") warnings.warn(msg, DeprecationWarning) X = super().transform(raw_documents) return self._tfidf.transform(X, copy=False) From 6050aee67f5be559938872dc65639c2a567a7239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Sun, 4 Aug 2019 21:56:48 +0200 Subject: [PATCH 10/20] Update text.py --- sklearn/feature_extraction/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 1d818bc54f7af..00203b1ec6f30 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1681,7 +1681,7 @@ def transform(self, raw_documents, copy="deprecated"): Whether to copy X and operate on the copy or perform in-place operations. - .. deprecated:: 0.24 + .. deprecated:: 0.22 The `copy` parameter was deprecated in version 0.22 and will be removed in 0.24. This parameter will be ignored From 0b9978a33bb0cf6f3bd33d164f1b7d83f14780f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Mon, 5 Aug 2019 08:12:47 +0200 Subject: [PATCH 11/20] Update text.py --- sklearn/feature_extraction/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 00203b1ec6f30..0b6dccafb1aca 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1683,7 +1683,7 @@ def transform(self, raw_documents, copy="deprecated"): .. deprecated:: 0.22 The `copy` parameter was deprecated in version 0.22 and - will be removed in 0.24. This parameter will be ignored + will be removed in 0.24. This parameter will be ignored. Returns ------- From 58b9f2829e4822cd6b49e971207bf11c3e723997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Mon, 5 Aug 2019 14:57:03 +0200 Subject: [PATCH 12/20] Update v0.22.rst --- doc/whats_new/v0.22.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 92095b686df45..a9020a9f772a9 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -45,6 +45,15 @@ Changelog :pr:`123456` by :user:`Joe Bloggs `. where 123456 is the *pull request* number, not the issue number. +:mod:`sklearn.inspection` +..................... + +- |API| Deprecated `copy` param for + :meth: `feature_extraction.text.TfidfVectorizer.transform` it will be + removed in v0.24. :pr:`14520` by + :user:`Guillem G. Subies `. + + :mod:`sklearn.base` ................... From 5d43a86f1d4b38471b0f4e8268f0ba4e1be8111c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 6 Aug 2019 08:25:48 +0200 Subject: [PATCH 13/20] Update doc/whats_new/v0.22.rst Co-Authored-By: Joel Nothman --- doc/whats_new/v0.22.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index a9020a9f772a9..41f738c1fcf68 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -48,7 +48,7 @@ Changelog :mod:`sklearn.inspection` ..................... -- |API| Deprecated `copy` param for +- |API| Deprecated unused `copy` param for :meth: `feature_extraction.text.TfidfVectorizer.transform` it will be removed in v0.24. :pr:`14520` by :user:`Guillem G. Subies `. From a3946469beb76c5411d909e66a7067034c743f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 6 Aug 2019 08:26:52 +0200 Subject: [PATCH 14/20] Update test_text.py --- sklearn/feature_extraction/tests/test_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index cf5e943cbaed9..a7284d3b20503 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -506,7 +506,7 @@ def test_tfidf_vectorizer_setters(): # FIXME Remove copy parameter support in 0.24 def test_tfidf_vectorizer_deprecationwarning(): - msg = ("'copy' param has been deprecated since version 0.22." + msg = ("'copy' param is unused and has been deprecated since version 0.22." " Backward compatibility for 'copy' will be removed in" " 0.24.") with pytest.warns(DeprecationWarning, match=msg): From 411bb3d43911421ed541d2a910bf5c44553d5e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 6 Aug 2019 08:27:15 +0200 Subject: [PATCH 15/20] Update text.py --- sklearn/feature_extraction/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 0b6dccafb1aca..7dcde1cf9b53a 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1694,7 +1694,7 @@ def transform(self, raw_documents, copy="deprecated"): # FIXME Remove copy parameter support in 0.24 if copy != "deprecated": - msg = ("'copy' param has been deprecated since version 0.22." + msg = ("'copy' param is unused and has been deprecated since version 0.22." " Backward compatibility for 'copy' will be removed in" " 0.24.") warnings.warn(msg, DeprecationWarning) From 62b8a28a768eca5c2a4358d9bc3430ed0df61970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 6 Aug 2019 08:27:56 +0200 Subject: [PATCH 16/20] Update text.py --- sklearn/feature_extraction/text.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 7dcde1cf9b53a..5a5bf8db2566c 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1682,8 +1682,9 @@ def transform(self, raw_documents, copy="deprecated"): operations. .. deprecated:: 0.22 - The `copy` parameter was deprecated in version 0.22 and - will be removed in 0.24. This parameter will be ignored. + The `copy` parameter is unused and was deprecated in version + 0.22 and will be removed in 0.24. This parameter will be + ignored. Returns ------- From eaccf9826c56b555197b933e1aa5b7efd0279c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 6 Aug 2019 08:50:48 +0200 Subject: [PATCH 17/20] Update text.py --- sklearn/feature_extraction/text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index 5a5bf8db2566c..aee245ac65c66 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1695,9 +1695,9 @@ def transform(self, raw_documents, copy="deprecated"): # FIXME Remove copy parameter support in 0.24 if copy != "deprecated": - msg = ("'copy' param is unused and has been deprecated since version 0.22." - " Backward compatibility for 'copy' will be removed in" - " 0.24.") + msg = ("'copy' param is unused and has been deprecated since " + "version 0.22. Backward compatibility for 'copy' will " + "be removed in 0.24.") warnings.warn(msg, DeprecationWarning) X = super().transform(raw_documents) return self._tfidf.transform(X, copy=False) From 43e630e890570a881ad283e2c847d047f68d5196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Tue, 6 Aug 2019 08:51:22 +0200 Subject: [PATCH 18/20] Update test_text.py --- sklearn/feature_extraction/tests/test_text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index a7284d3b20503..c0480aaf0f8cb 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -506,9 +506,9 @@ def test_tfidf_vectorizer_setters(): # FIXME Remove copy parameter support in 0.24 def test_tfidf_vectorizer_deprecationwarning(): - msg = ("'copy' param is unused and has been deprecated since version 0.22." - " Backward compatibility for 'copy' will be removed in" - " 0.24.") + msg = ("'copy' param is unused and has been deprecated since " + "version 0.22. Backward compatibility for 'copy' will " + "be removed in 0.24.") with pytest.warns(DeprecationWarning, match=msg): tv = TfidfVectorizer() train_data = JUNK_FOOD_DOCS From 6b9be446e302200c3736b9957aa93fa08add454e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Wed, 7 Aug 2019 14:41:16 +0200 Subject: [PATCH 19/20] Update doc/whats_new/v0.22.rst Co-Authored-By: Joel Nothman --- doc/whats_new/v0.22.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 41f738c1fcf68..e07cb26e4b0dc 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -45,7 +45,7 @@ Changelog :pr:`123456` by :user:`Joe Bloggs `. where 123456 is the *pull request* number, not the issue number. -:mod:`sklearn.inspection` +:mod:`sklearn.feature_extraction` ..................... - |API| Deprecated unused `copy` param for From eed84399d2f2c9544f8ce670d7ed4fad440292ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Garc=C3=ADa=20Subies?= <37592763+GuillemGSubies@users.noreply.github.com> Date: Wed, 7 Aug 2019 14:42:35 +0200 Subject: [PATCH 20/20] Update v0.22.rst --- doc/whats_new/v0.22.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index e07cb26e4b0dc..1c57b7e6f3da8 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -45,14 +45,6 @@ Changelog :pr:`123456` by :user:`Joe Bloggs `. where 123456 is the *pull request* number, not the issue number. -:mod:`sklearn.feature_extraction` -..................... - -- |API| Deprecated unused `copy` param for - :meth: `feature_extraction.text.TfidfVectorizer.transform` it will be - removed in v0.24. :pr:`14520` by - :user:`Guillem G. Subies `. - :mod:`sklearn.base` ................... @@ -143,6 +135,14 @@ Changelog `predict_proba` give consistent results. :pr:`14114` by :user:`Guillaume Lemaitre `. +:mod:`sklearn.feature_extraction` +................................. + +- |API| Deprecated unused `copy` param for + :meth: `feature_extraction.text.TfidfVectorizer.transform` it will be + removed in v0.24. :pr:`14520` by + :user:`Guillem G. Subies `. + :mod:`sklearn.gaussian_process` ...............................