AI engineering glossary · Feature engineering data prep

What is high-cardinality feature?

High-cardinality feature: A categorical feature with a very large number of distinct values, such as user IDs, product SKUs or pincodes. One-hot encoding it creates enormous, sparse data, so alternatives such as target, frequency or hashed encoding, or embeddings, are used.

Level: intermediateTopic: Feature engineering data prep

High-cardinality feature: an example

India has over 19,000 pincodes; one-hot encoding a pincode column would create thousands of mostly-zero columns.

Related terms

More Feature engineering data prep terms

Where you learn it

High-cardinality feature is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.