Skip to content

BENCH Add benchmark for encoders - #34394

Closed
cakedev0 wants to merge 6 commits into
scikit-learn:mainfrom
cakedev0:bench/encoders
Closed

cakedev0 wants to merge 6 commits into
scikit-learn:mainfrom
cakedev0:bench/encoders

Conversation

@cakedev0

@cakedev0 cakedev0 commented Jun 26, 2026 •

Copy link
Copy Markdown
Member

Reference Issues/PRs

This benchmark is meant to measure the impact of #34386, #34392 and #34678.

What does this implement/fix? Explain your changes.

This PR adds a small benchmark script for OneHotEncoder, OrdinalEncoder and TargetEncoder.

It measures fit, transform and fit_transform on OpenML #42165, with options to vary the input format (string, categorical, integer), include numerical columns through a ColumnTransformer, and try the polars dataframe path.

This should make it easier to compare the different encoder performance PRs on the same benchmark.

@cakedev0
cakedev0 marked this pull request as ready for review June 26, 2026 16:50
Comment thread benchmarks/bench_encoding.py Resolved
Comment thread benchmarks/bench_encoding.py Resolved
Comment thread benchmarks/bench_encoding.py Resolved
@cakedev0

Copy link
Copy Markdown
Member Author

@cakedev0 cakedev0 closed this Oct 27, 2026
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.

2 participants