liveBook · Manning

Min-max normalization

As explained in Grokking AI Algorithms, Second Edition

Min-max scaling is a feature-scaling technique that linearly maps values between a specified minimum and maximum to a normalized range, commonly 0 to 1.

Min-max normalization scales each feature into a shared range, commonly 0 to 1. This prevents large raw numbers from making an artificial neural network treat one feature as more important. section 9.3

Apply the technique by:

  • Choosing a minimum and maximum for each feature, such as 0–120 km/h for speed or 0–360° for field of vision. section 9.3

Car-collision data

A speed of 65 km/h becomes 0.542 when scaled between 0 and 120. Terrain quality 5/10 becomes 0.5, while 400,000 km of experience becomes 1.000.

How Grokking AI Algorithms, Second Edition covers it

How deep it goes
Explains feature-specific ranges, gives the scaling formula, and demonstrates a row-by-row Python implementation.
Examples
Uses speed, terrain quality, field of vision, driving experience, and collision labels from a car-collision dataset.
What it assumes
Assumes basic feature data and classification context while explaining from zero why raw feature magnitudes can mislead an ANN.
What you can do after
Apply min-max scaling by selecting feature bounds and transforming each dataset value with a short Python routine.
How it connects
Connects feature scaling and data preprocessing with artificial neural networks and classification.

Also explained in

Compare how 4 books explain min-max normalization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking AI Algorithms, Second Edition. The section links point to the parts of the book it draws on.