Skip to content

FIX do not try to inspect estimator object #24548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

glemaitre
Copy link
Member

@glemaitre glemaitre commented Sep 29, 2022

closes #24545

We should not try to call get_params on the estimator class object but only instances.
Otherwise, self is not defined and it does not make sense to get any not yet created parameters.

TODO:

  • add a non-regression test

@glemaitre glemaitre marked this pull request as draft September 29, 2022 19:59
@thomasjpfan
Copy link
Member

thomasjpfan commented Sep 29, 2022

I had a PR with a similar fix here: #24512. It was for a related issue with a custom Estimator that had a class in __init__: #22856 (comment)

@glemaitre glemaitre closed this Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when returning embedded transformers in Jupyter notebook
2 participants