scikit-learn-contrib/category_encoders
A library of sklearn compatible categorical variable encoders observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 54
- age_days: 3930
- days_rel: 38
- days_push: 8
- n_releases_24m: 8
Adoption not part of the score
2499 stars · 411 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A scikit-learn-contrib library providing a collection of sklearn-compatible transformers for encoding categorical variables into numeric form using techniques like one-hot, binary, hashing, target, and CatBoost encoding. It supports pandas DataFrames, works in sklearn pipelines, and includes both supervised and unsupervised encoders.
Use cases
- encode categorical columns for machine learning models
- target encode high-cardinality categorical features
- one-hot encode pandas dataframes in sklearn pipelines
- convert string categories to numbers for sklearn
- avoid target leakage when encoding categories
- pickle and reuse a fitted categorical encoder
When to choose
- you need sklearn-pipeline-compatible categorical transformers
- you work with pandas DataFrames and want column-level control
- you need supervised encoders like target, CatBoost, or James-Stein encoding
When to avoid
- your data has no categorical features
- you need deep-learning-native embedding layers instead of tabular encoding
- you are outside the Python/sklearn ecosystem
Facets
library · maturity active
machine-learning data-science etl machine-learning data-science python categorical-encoding sklearn-transformers feature-engineering target-encoding pandas
2 sources
- readme: https://github.com/scikit-learn-contrib/category_encoders · fetched 2026-08-28 · 410fc57cd3e6
- homepage: http://contrib.scikit-learn.org/category_encoders/ · fetched 2026-08-29 · 3492b0148215
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| scikit-learn-contrib/category_encoders | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="scikit-learn-contrib/category_encoders")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem