liveBook · Manning

Normalization layer

As explained in Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A normalization layer is a neural-network layer that transforms input feature values to a standardized numeric distribution during model computation.

A normalization layer standardizes continuous feature values during model computation, typically producing values centered around 0 with a standard deviation of 1. This prevents large-range features from dominating training: in the Kuala Lumpur property data, Bathrooms ranges from 0 to 20 while Size reaches 11 million. section 9.4.3

In a Keras tabular model, create the layer from training data, adapt it to one continuous column, and apply it to that model input. Use the resulting normalized values alongside separately encoded categorical features. section 9.3.2

Kuala Lumpur property prediction

For Bathrooms, Car Parks, Rooms, and Size, build one normalization layer per continuous column using the training dataset. Keep Location, Property Type, Furnishing, and Size_type_bin on a categorical encoding path before concatenating all features for the neural network.

How Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI covers it

How deep it goes
Explains the range problem and gives an adaptation-based Keras implementation, but stops short of mathematical derivation.
Examples
Uses Kuala Lumpur property data, contrasting Bathrooms values up to 20 with Size values up to 11 million.
What it assumes
Assumes basic tabular feature types and model inputs while demonstrating dataset preparation and preprocessing-layer adaptation.
What you can do after
Apply it via Keras preprocessing layers by adapting one normalizer per continuous feature from training data.
How it connects
Connects standardization with continuous features, categorical encoding, input pipelines, regularization, and gradient boosting.

Also explained in

Compare how 2 books explain normalization layer →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI. The section links point to the parts of the book it draws on.