liveBook · Manning

Category_encoders

category_encoders is a Python library providing scikit-learn-compatible transformations that encode categorical variables as numerical features.

How 2 Manning books explain it

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

category_encoders is a Python library providing scikit-learn-compatible encoders for categorical variables, including target and ordinal encoders.

How it is used
Applies target-based transformations to high-cardinality categorical features before model training.
How deep it goes
Explains target statistics, smoothing, and encoder selection, then stops short of full implementation details.
Examples
Uses neighborhood values, gridded latitude–longitude coordinates, TargetEncoder, column transformation, and five-fold validation.
What you can do after
Apply TargetEncoder in a scikit-learn-compatible preprocessing pipeline and tune or replace its smoothing strategy.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains category_encoders →

Ensemble Methods for Machine Learning

category_encoders is a Python library that provides encoders for converting categorical variables into numerical representations compatible with scikit-learn workflows.

How it is used
Supports categorical preprocessing before training scikit-learn-compatible models, including LightGBM and XGBoost.
How deep it goes
Demonstrates pipeline construction, column selection, fitting, transformation, and encoder comparison, but does not detail encoder internals.
Examples
Uses the Australian Credit Approval dataset to compare one-hot, greedy target, and leave-one-out target encoding.
What you can do after
Apply it via scikit-learn pipelines to encode categorical columns and evaluate downstream ensemble models.

Read how Ensemble Methods for Machine Learning explains category_encoders →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.