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

Skip to content

RFC Allow passthrough as pipeline step instead of None #11144

Description

@amueller

As I mentioned here it might make sense to deprecate setting pipeline steps to None and requiring "passthrough" instead to avoid ambiguities with FeatureUnion and ColumnTransformer.

This might also give us an opportunity to easily specify "blank" pipelines for which you want to search the steps. Right now it's not easy to say "I want a pipeline with three steps and then let the GridSearch figure out the steps" because you need to provide actual steps at instantiation.
Something like

pipe = Pipeline([("imputer", "passthrough"), ("scaler", "passthrough"), ("classifier", "passthrough")])

or something.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions