Normalization layers
Step 10 of 14 in Deep Learning · Build · Medium
BatchNorm normalizes each feature across the batch; LayerNorm across features of one example. Both make deep nets train faster and more stably.
Build it
BatchNorm layer
Forward and backward BatchNorm in NumPy with running stats for eval mode.
Done when: Matches torch.nn.BatchNorm1d; train and eval behave differently.
Resources
- Wikipedia: Batch normalization Article
- Karpathy: Zero to Hero Course
- Dive into Deep Learning Book
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map