Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bug: the predict method of Pipeline object does not use the exact predict method of final step estimator #9293

Copy link
Copy link
Closed
@liangtianumich

Description

@liangtianumich
Issue body actions

I am trying to use Pipeline with a customized final step estimator. This final estimator predict method can output std when using return_std=True.
But the predict method of Pipeline does not allow return_std option, gives error on scikit-learn/sklearn/utils/metaestimators.py Line 54.

In the user guide:user guide http://scikit-learn.org/stable/modules/pipeline.html
says the following, but the predict method in Pipeline is not the same as that in final estimator
"""
4.1.1.2. Notes

Calling fit on the pipeline is the same as calling fit on each estimator in turn, transform the input and pass it on to the next step. The pipeline has all the methods that the last estimator in the pipeline has, i.e. if the last estimator is a classifier, the Pipeline can be used as a classifier. If the last estimator is a transformer, again, so is the pipeline.
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.