-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
MNT: remove the steps
attribute from _BaseComposition
#32040
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
MNT: remove the steps
attribute from _BaseComposition
#32040
Conversation
step
attribute from _BaseCompositionstep
attribute from _BaseComposition
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 looks reasonable to me. Can you reword the following to not use "steps" anymore?
# 1. All steps |
step
attribute from _BaseCompositionsteps
attribute from _BaseComposition
12f3fc7
to
bef64ed
Compare
@thomasjpfan |
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 @sotagg. Indeed the steps
class attribute is not used and misleading. The docstring and comments modifications look fine to me.
LGTM
Reference Issues/PRs
What does this implement/fix? Explain your changes.
This PR removes the unused and misleading
steps
attribute from the_BaseComposition
class. This attribute served no functional purpose since subclasses define their own attributes in__init__()
(e.g.,Pipeline
usessteps
whileColumnTransformer
usestransformers
).I also updated the docstring to better explain the design pattern.
Any other comments?