-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+2] ENH add memory to make_pipeline #8831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sklearn/pipeline.py
Outdated
@@ -549,7 +561,8 @@ def make_pipeline(*steps): | |||
------- | |||
p : Pipeline | |||
""" | |||
return Pipeline(_name_estimators(steps)) | |||
memory = kwargs.pop('memory', None) | |||
return Pipeline(_name_estimators(steps), memory=memory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensue that an error is raised if there are other keyword args to make_pipeline. Easiest way to do that is just to forward **kwargs in entirety.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM, thanks! |
Great!
|
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
[MRG+2] ENH add memory to make_pipeline
Reference Issue
No issue
What does this implement/fix? Explain your changes.
make_pipeline
can now buildPipeline
with cache memory;Any other comments?