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

Skip to content

Unexpected behavior of the HTML repr of meta-estimators #32146

@jeremiedbb

Description

@jeremiedbb

Here's a list of some unexpected behaviors of the HTML repr of meta-estimators

  • Pipeline doesn't display its named steps

    Image

    This was maybe intentional ? In comparison FeatureUnion does for instance

    Image
  • a Pipeline in a meta-estimator doesn't render properly; it doesn't have the dashed border

    Image

    Another meta-estimator renders properly

    Image
  • transformers of ColumnTransformer are expandable to show the selected columns, but there's no additional info. I think it should be explicit that these are the selected columns.

    Image

    Note that this could be fixed by ENH: Display the number of output features #31937

  • When the inner estimator of a meta-estimator is not a meta-estimator itself, it's expandable but the dropdown is not useful anymore (it's the non-html repr of the estimator basically):

    Image

    Now that we have the parameter table, it's not useful anymore to have the additional repr which is redundant and less informative. I'd be in favor of removing the dropdown

  • When the inner estimator of a meta-estimator is a meta-estimator itself, it's expandable but sometimes there's no dropdown or the dropdown is the non-html repr of the meta-estimator, and there's no parameter table.

    Image Image

    I think that it should display the parameter table instead in both cases

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions