Skip to content
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

Feature suggestion: Add stage labels #19

Closed
shaypal5 opened this issue Jan 13, 2020 · 1 comment
Closed

Feature suggestion: Add stage labels #19

shaypal5 opened this issue Jan 13, 2020 · 1 comment

Comments

@shaypal5
Copy link
Collaborator

Add the ability to give pipeline stages labels and access them by labels (both single labels and lists of labels).

For example:

pipeline = pdp.PdPipeline([
    pdp.ColDropI(columns='age', label='dropAge'),
    pdp.Bin({'speed': [0,5,8]}, label='binSpeed'),
    pdp.OneHotEncode('state', label='dummyState'),
])
pstage = pipeline['binSpeed']
sub_pipeline = pipeline[['dropAge', 'dummyState']]
@shaypal5
Copy link
Collaborator Author

Closed by PR #39 and released in version v0.0.52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant