Skip to content

Glossary: ML Beyond the Basics

One-hot encoding

Also written: OneHotEncoder, one-hot

Turning a categorical column into one 0/1 column per value. It works well for a few values (like `plan`) but adds thousands of nearly empty columns for high-cardinality columns.

Where the book teaches it

Related terms

High-cardinalityTarget encoding