question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

doc for `sklearn.utils.all_estimators` says it doesn't return meta estimators but it actually does

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
glemaitrecommented, Aug 24, 2020

@glemaitre Thanks. This sentecne: By default meta_estimators such as GridSearchCV are also not included. is not necessary?

Exactly because meta-estimator are just a subgroup of estimators in scikit-learn

0reactions
harupycommented, Aug 24, 2020

@glemaitre Thanks. This sentecne: By default meta_estimators such as GridSearchCV are also not included is not necessary?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found