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

Input / Outputs for ColumnTransformers not captured #104

Open
Ennosigaeon opened this issue Nov 10, 2021 · 1 comment
Open

Input / Outputs for ColumnTransformers not captured #104

Ennosigaeon opened this issue Nov 10, 2021 · 1 comment
Labels

Comments

@Ennosigaeon
Copy link

I try to capture the outputs of Estimators in a ColumnTransformer using alter_pipeline_for_debugging and enumerate_pipeline_models. Yet, all inputs and outputs for the Estimatorss in a ColumnTransformer are not captured.

In enumerate_pipeline_models, all transformers are extracted from ColumnTransformers. Yet, for the actual transformation the field transformers_ is used (see here and here).

I think, replacing enumerate(pipe.transformers) with enumerate(pipe.transformers_) should solve this issue. If you would like to, I can provide an according PR.

@sdpython
Copy link
Owner

It would be a great help if you could provide a PR, even incomplete.

@sdpython sdpython added the bug label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants