From 7b724db667b35fc57ef499f21e5f8467627af1ce Mon Sep 17 00:00:00 2001 From: nikJ Date: Thu, 23 Sep 2021 20:58:58 +0530 Subject: [PATCH 1/2] randomized_valid --- maint_tools/test_docstrings.py | 2 +- sklearn/model_selection/_search.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/maint_tools/test_docstrings.py b/maint_tools/test_docstrings.py index 17036b7802b18..ea15c16dd0bbf 100644 --- a/maint_tools/test_docstrings.py +++ b/maint_tools/test_docstrings.py @@ -32,7 +32,7 @@ "PatchExtractor", "PolynomialFeatures", "QuadraticDiscriminantAnalysis", - "RandomizedSearchCV", + #"RandomizedSearchCV", "RobustScaler", "SGDRegressor", "SelfTrainingClassifier", diff --git a/sklearn/model_selection/_search.py b/sklearn/model_selection/_search.py index 746ec5e9a0813..c13e5b6643ce1 100644 --- a/sklearn/model_selection/_search.py +++ b/sklearn/model_selection/_search.py @@ -1420,7 +1420,7 @@ class RandomizedSearchCV(BaseSearchCV): Parameters ---------- - estimator : estimator object. + estimator : estimator object A object of that type is instantiated for each grid point. This is assumed to implement the scikit-learn estimator interface. Either estimator needs to provide a ``score`` function, @@ -1692,6 +1692,12 @@ class RandomizedSearchCV(BaseSearchCV): .. versionadded:: 1.0 + See Also + -------- + GridSearchCV : Does exhaustive search over a grid of parameters. + ParameterSampler : A generator over parameter settings, constructed from + param_distributions. + Notes ----- The parameters selected are those that maximize the score of the held-out @@ -1705,12 +1711,6 @@ class RandomizedSearchCV(BaseSearchCV): `pre_dispatch` many times. A reasonable value for `pre_dispatch` is `2 * n_jobs`. - See Also - -------- - GridSearchCV : Does exhaustive search over a grid of parameters. - ParameterSampler : A generator over parameter settings, constructed from - param_distributions. - Examples -------- >>> from sklearn.datasets import load_iris From b424204a8a77e124ea4dbe07918e8ee4d23d8d65 Mon Sep 17 00:00:00 2001 From: nikJ Date: Fri, 24 Sep 2021 13:21:48 +0530 Subject: [PATCH 2/2] removed_randomized_from_list --- maint_tools/test_docstrings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/maint_tools/test_docstrings.py b/maint_tools/test_docstrings.py index ea15c16dd0bbf..82bf0dac37163 100644 --- a/maint_tools/test_docstrings.py +++ b/maint_tools/test_docstrings.py @@ -32,7 +32,6 @@ "PatchExtractor", "PolynomialFeatures", "QuadraticDiscriminantAnalysis", - #"RandomizedSearchCV", "RobustScaler", "SGDRegressor", "SelfTrainingClassifier",