liveBook · Manning

High-cardinality categorical feature

A high-cardinality categorical feature is a categorical feature with many distinct values relative to its dataset or analysis context.

How 3 Manning books explain it

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

A high-cardinality categorical feature is a categorical feature with many distinct category values relative to the dataset or available computational resources.

How it is used
Guides categorical preprocessing choices before tabular machine-learning pipelines are built.
How deep it goes
Defines cardinality, explains encoding failures, and demonstrates mixed encoding pipelines without specifying a fixed universal threshold.
Examples
Uses Airbnb neighbourhood, room type, and binned geographic coordinates with 221 and 2,259 distinct values.
What you can do after
Apply it via pandas unique-value counts and ColumnTransformer pipelines that assign one-hot, ordinal, or target encoding.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains high-cardinality categorical feature →

Ensemble Methods for Machine Learning

A high-cardinality categorical feature is a categorical input variable with a large number of distinct categories.

How it is used
Guides encoding choices for categorical inputs whose many values make ordinary representations inefficient or misleading.
How deep it goes
Defines cardinality, explains sparsity and dirty strings, and demonstrates three similarity or hashing encoders in a predictive pipeline.
Examples
Uses ZIP codes, employee job titles, and the Adult data set’s 30-category native-country feature as examples.
What you can do after
Apply dirty_cat encoders in a scikit-learn pipeline and compare held-out regression scores.

Read how Ensemble Methods for Machine Learning explains high-cardinality categorical feature →

The Coder Cafe

High-cardinality telemetry data contains measurements with many distinct attribute or dimension values.

How it is used
Frames high-cardinality telemetry data within the operational challenge of complex environments.
How deep it goes
Defines the telemetry context but stops short of explaining cardinality thresholds, storage, querying, or aggregation.
Examples
Uses one-way versus two-way doors and local-versus-global metrics as operational examples.
What you can do after
Evaluate operational changes using reversible decisions and metrics that include both local and global system health.

Read how The Coder Cafe explains high-cardinality categorical feature →

Also covered in

What to know first

Related concepts

Questions about high-cardinality categorical feature

What is high-cardinality categorical feature?

A high-cardinality categorical feature is a categorical feature with many distinct values relative to its dataset or analysis context.

Which Manning books explain high-cardinality categorical feature?

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI, Ensemble Methods for Machine Learning and The Coder Cafe.

What should I know before learning high-cardinality categorical feature?

Manning books that teach high-cardinality categorical feature usually introduce categorical data, cardinality, one-hot encoding and signal first.

What is the difference between high-cardinality categorical feature and low-cardinality categorical feature?

A high-cardinality categorical feature is a categorical feature with many distinct values relative to its dataset or analysis context. A low-cardinality categorical feature is a categorical feature with relatively few distinct values or categories.

What is high-cardinality categorical feature a kind of?

High-cardinality categorical feature is a kind of categorical data. Categorical data consists of values representing membership in discrete categories rather than measured numerical magnitudes.

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.