to standardize: when you need zero mean and unit variance for gradient-based optimization

Why do we need to make data uniform before training a model?

Image: Dirk Ingo Franke, CC BY-SA 2.0 de, via Wikimedia Commons

to standardize: when you need zero mean and unit variance for gradient-based optimization

Why do we need to make data uniform before training a model?

Imagine you're trying to teach a robot to recognize different types of fruits. If some fruits are bigger and some are smaller, the robot might struggle to learn correctly.

To help the robot, we adjust all fruit sizes to a standard size. This way, the robot can focus on learning the shapes and colors instead of dealing with varying sizes.

Example

If apples range from 1 to 3 inches in diameter and we standardize them to a 2-inch diameter, the robot sees all apples as the same size.

Remember this

Standardizing data to zero mean and unit variance helps gradient-based optimization algorithms learn more efficiently.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath