-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT validate parameters of Pipeline #25133
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
MAINT validate parameters of Pipeline #25133
Conversation
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.
Thanks for the PR!
@@ -307,8 +314,15 @@ def named_steps(self): | |||
|
|||
@property | |||
def _final_estimator(self): | |||
estimator = self.steps[-1][1] | |||
return "passthrough" if estimator is None else estimator | |||
try: |
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.
This is an additional change that we did not think of at first.
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
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
Add parameter validation to
Pipeline
.No need for any mixin since we inherit from
BaseEstimator
in this class (i.e through_BaseComposition
.