Skip to content

Exclude inactive steps from pipeline node counts - #1404

Open
jeffwalsh728-tech wants to merge 1 commit into
EpistasisLab:mainfrom
jeffwalsh728-tech:fix/count-active-pipeline-nodes
Open

jeffwalsh728-tech wants to merge 1 commit into
EpistasisLab:mainfrom
jeffwalsh728-tech:fix/count-active-pipeline-nodes

Conversation

@jeffwalsh728-tech

Copy link
Copy Markdown

Summary

The pipeline size objective currently counts inactive scikit-learn steps as estimators. Treat None, passthrough, and drop as zero nodes so these placeholders do not inflate the objective. The regression test covers a Pipeline containing a FeatureUnion and a real classifier.

Validation

Ran the regression case against the changed objective with scikit-learn 1.6.1. The pipeline reports two estimator nodes. The full TPOT suite was not run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant