Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX Show a HTML repr for meta-estimatosr with invalid parameters - #24015

Merged
glemaitre merged 4 commits into
scikit-learn:mainfrom
thomasjpfan:sk_visual_block_validiation
Jul 27, 2022
Merged

FIX Show a HTML repr for meta-estimatosr with invalid parameters#24015
glemaitre merged 4 commits into
scikit-learn:mainfrom
thomasjpfan:sk_visual_block_validiation

Conversation

@thomasjpfan

Copy link
Copy Markdown
Member

Reference Issues/PRs

Fixes #24009

What does this implement/fix? Explain your changes.

For the case of _sk_visual_block_, this PR enhances _get_visual_block to have a better default if _sk_visual_block_ fails for any reason. The default here is to treat the meta-estimator as a single estimator:

Screen Shot 2022-07-26 at 1 05 41 PM

Any other comments?

The alternative is to adjust all the meta-estimators and validate some parameters in _sk_visual_block_.

@thomasjpfan thomasjpfan added this to the 1.1.2 milestone Jul 26, 2022

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer this approach rather than validating params in _sk_visual_block_

Comment thread doc/whats_new/v1.1.rst Outdated
thomasjpfan and others added 2 commits July 26, 2022 14:59
Co-authored-by: Jérémie du Boisberranger <[email protected]>
@glemaitre
glemaitre merged commit 84c6421 into scikit-learn:main Jul 27, 2022
@glemaitre

Copy link
Copy Markdown
Member

Thanks @thomasjpfan LGTM. Merging

glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Aug 4, 2022
glemaitre pushed a commit that referenced this pull request Aug 5, 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.

_sk_visual_block can be executed before parameter validation

3 participants