doc for `sklearn.utils.all_estimators` says it doesn't return meta estimators but it actually does
See original GitHub issueDescribe the issue linked to the documentation
The doc for sklearn.utils.all_estimators
says:
By default meta_estimators such as GridSearchCV are also not included.
but, looks like it actually does.
import sklearn
print("sklearn version:", sklearn.__version__)
for a, b in sklearn.utils.all_estimators():
if "grid" in a.lower():
print(a, b)
output:
sklearn version: 0.23.2
GridSearchCV <class 'sklearn.model_selection._search.GridSearchCV'>
Suggest a potential alternative/fix
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Glossary of Common Terms and API Elements - Scikit-learn
To copy an estimator instance and create a new one with identical parameters, but without any fitted attributes, using clone . When fit...
Read more >sklearn.base — pyts 0.12.0 documentation - Read the Docs
If the estimator's `random_state` parameter is an integer (or if the estimator doesn't have a `random_state` parameter), an *exact clone* is returned: the ......
Read more >Source code for mlflow.sklearn
The ``mlflow.sklearn`` module provides an API for logging and loading scikit-learn models. This module exports scikit-learn models with the following ...
Read more >Chapter 4. Text Vectorization and Transformation Pipelines
In order to perform machine learning on text, we need to transform our documents into vector representations such that we can apply numeric...
Read more >Extracting, transforming and selecting features - Apache Spark
IDF: IDF is an Estimator which is fit on a dataset and produces an IDFModel . ... of all words in the document;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Exactly because meta-estimator are just a subgroup of estimators in scikit-learn
@glemaitre Thanks. This sentecne:
By default meta_estimators such as GridSearchCV are also not included
is not necessary?