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

Skip to content

Transformative get_feature_names for various transformers #6425

@jnothman

Description

@jnothman

#6372 adds get_feature_names to PolynomialFeatures. It accepts a list of names of input_features (or substitutes with defaults) and constructs feature name strings that are human-readable and informative. Similar support should be available for other transformers, including feature selectors, feature agglomeration, FunctionTransformer, and perhaps even PCA (giving the top contributors to each component). FeatureUnion should be modified to handle the case where an argument is supplied. A proposal for support in Pipeline is given in #6424.

Modelled on #6372, each enhancement can be contributed as a separate PR. Note that default names for features are [x0, x1, ...]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions