# One Hot Encoding

Learn about one-hot encoding, both theoretically and programmatically.

## We'll cover the following

## Theory

Remember how we encoded labels while Preparing the input matrices? Back then, we only recognized $5$ from other digits. So we encoded the labels by replacing $5$ with $1$, and other digits with $0$:

Get hands-on with 1200+ tech skills courses.