Min-max scaling
Min-max scaling is a feature-scaling technique that linearly maps numerical values to a specified interval based on their minimum and maximum.
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.
- How it is used
- Prepares differently sized input features so artificial neural networks compare them without bias from raw numerical magnitude.
- 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 you can do after
- Apply min-max scaling by selecting feature bounds and transforming each dataset value with a short Python routine.
Read how Grokking AI Algorithms, Second Edition explains min-max scaling →
Outlier Detection in Python
A feature-scaling transformation that linearly maps values to a specified interval, commonly from zero to one.
- How it is used
- Prepares numeric features and outlier scores for distance calculations, detector combination, and comparable feature contributions.
- How deep it goes
- Defines the 0.0–1.0 transformation and demonstrates implementation, but defers detailed scaler treatment to later coverage.
- Examples
- Uses OpenML segment features, MAD scores, and baseball statistics to illustrate score and feature scaling.
- What you can do after
- Apply it via scikit-learn's MinMaxScaler to comparable numeric features or detector scores before distance calculations or aggregation.
Read how Outlier Detection in Python explains min-max scaling →
Math and Architectures of Deep Learning
A preprocessing method that rescales values into a fixed range, here 0–1.
- How it is used
- Prepares differently scaled features and targets before neural-network regression training.
- How deep it goes
- Defines the column-wise formula and shows its PyTorch implementation, stopping short of discussing edge cases or inverse scaling.
- Examples
- Uses demand prediction with sales, discount, holiday timing, and units-sold data.
- What you can do after
- Apply it via PyTorch by computing column extrema and transforming input and target tensors to 0–1.
Read how Math and Architectures of Deep Learning explains min-max scaling →
The Complete Obsolete Guide to Generative AI
Min-max scaling is a normalization method that linearly transforms values into a specified range, commonly from 0 to 1.
- How it is used
- Supports fairer comparisons and visualizations when features use different units or scales.
- How deep it goes
- Defines the formula and demonstrates a plotted workflow, but stops short of deeper algorithmic internals.
- Examples
- Uses CPU, memory, storage, employee salaries, experience, and server specifications as normalization examples.
- What you can do after
- Apply it via scikit-learn's MinMaxScaler to normalize tabular columns and plot comparable time-series trends.
Read how The Complete Obsolete Guide to Generative AI explains min-max scaling →
Also covered in
Related concepts
- feature scalingimplements · Feature scaling is the transformation of numerical features to comparable magnitudes, ranges, or distributions for computation or model fitting.
- normalizationkind of · Normalization is the process of transforming or organizing data or representations according to rules to achieve a consistent form, scale, or structure.
- predict_probaused by · predict_proba is a classifier method that returns estimated probabilities for each possible class for supplied input samples.
- anomaly scoreuses · An anomaly score is a numerical measure of how unusual an item is relative to expected patterns or a specified reference.
- scikit-learnpart of · scikit-learn is an open-source Python machine-learning library providing algorithms and tools for data preprocessing, model fitting, selection, and evaluation.
- RobustScaleralternative to · RobustScaler is a scikit-learn transformer that scales features using robust statistics such as the median and interquartile range.
Questions about min-max scaling
What is min-max scaling?
Min-max scaling is a feature-scaling technique that linearly maps numerical values to a specified interval based on their minimum and maximum.
Which Manning books explain min-max scaling?
Grokking AI Algorithms, Second Edition, Outlier Detection in Python, Math and Architectures of Deep Learning and The Complete Obsolete Guide to Generative AI.
What is the difference between min-max scaling and RobustScaler?
Min-max scaling is a feature-scaling technique that linearly maps numerical values to a specified interval based on their minimum and maximum. RobustScaler is a scikit-learn transformer that scales features using robust statistics such as the median and interquartile range.
What is min-max scaling a kind of?
Min-max scaling is a kind of normalization. Normalization is the process of transforming or organizing data or representations according to rules to achieve a consistent form, scale, or structure.
What is min-max scaling part of?
Min-max scaling is part of scikit-learn. scikit-learn is an open-source Python machine-learning library providing algorithms and tools for data preprocessing, model fitting, selection, and evaluation.
What is min-max scaling also called?
Min-max scaling is also called MinMaxScaler.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



