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

Add custom callbacks after fitting at each step in Pipeline #20668

Closed
dayyass opened this issue Aug 3, 2021 · 1 comment
Closed

Add custom callbacks after fitting at each step in Pipeline #20668

dayyass opened this issue Aug 3, 2021 · 1 comment

Comments

@dayyass
Copy link

dayyass commented Aug 3, 2021

Describe the workflow you want to enable

It would be convenient if after each step of the pipeline you could call a custom function (callback) if needed.
For example, in simple TF-IDF + LogReg pipeline, after the step of fitting TF-IDF, I would like to look at the dimension of the resulting dictionary (output it to stdout).

Describe your proposed solution

Add additional parameter callbacks to Pipeline, which takes List of (name, transform) tuples, similar to the steps parameter (default: None).

@dayyass dayyass changed the title Add custom callbacks after each step in Pipeline Add custom callbacks after fitting at each step in Pipeline Aug 3, 2021
@glemaitre
Copy link
Member

duplicate #10973
feature discussion: #16925

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

2 participants