-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG]: Fixes Pipeline steps bug #12659
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
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, thanks @thomasjpfan ! Please add a what's new entry.
This looks like a regression in case of None (and in any case a small bug fix), so I think this can certainly be added to the 0.20 whatsnew file to have this in 0.20.2 |
@jorisvandenbossche but "passthrough" is not in 0.20.1, so I'm not sure how to backport this? |
The "passthrough" feature was intended for 0.21, so this PR would not be able to be backported: #11674 |
…cikit-learn#12659)" This reverts commit 408e51b.
…cikit-learn#12659)" This reverts commit 408e51b.
What does this implement/fix? Explain your changes.
Fixes bug related to
Pipeline
'ssteps
parameter. The idx used to modify thesteps
may not correspond to the correct step whenNone
orpassthrough
is used.On master, this test will fail:
8000 Specifically, on master,
pipeline.steps
would be equal to['m2', 'm3', 'm3', 'm5']
. This PR adjustsPipeline._iter
to also yield the step's index.