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

Skip to content

ENH Move non-data transform() parameters to the object #1975

Closed
@jnothman

Description

@jnothman

To be used sensibly in a Pipeline / parameter search, an estimator's transform method can't have parameters other than the data (though it may be possible in the future to support more than one data argument). Rather, it should be possible to set the parameter using the estimator's set_params method as used in a parameter search.

Hence additional arguments to transform should become object parameters (though whether they should be made unavailable as arguments directly to transform is up for debate).

Unfortunately, these happen to appear in mixin classes, meaning a lot of sub-classes' docstrings need altering.

Examples of additional arguments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyWell-defined and straightforward way to resolveEnhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions