Skip to content

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