Optimizing Training from Scratch
Instructor: Yousif Abdulhussein
Prerequisites: Multivariable Calculus and Linear Algebra
Curriculum: 17 Chapters

Optimizing Training from Scratch

This course will teach you how to take a working neural network and make it learn faster, generalize better, and train more reliably. This is the third course in the "From Scratch" series.

Free Full course access
  • Access to all content
  • Programming Exercises
  • Future course updates
Get Started

Secure checkout • 30-day money back guarantee

Course Curriculum

17 chapters are available now.

Evaluating Models Properly

Generalization, Validation, and Test Data

Explains why training accuracy is misleading, and introduces the training, validation, and test set paradigm along with overfitting, underfitting, and cross-validation as tools for honestly measuring performance.

Coming Soon

Diagnosing Training

Covers learning curves, the bias-variance tradeoff, and metrics beyond accuracy such as precision, recall, and confusion matrices for understanding how and why a model fails.

Coming Soon

Digit Classifier: Validation and Diagnostics

A hands-on lab to add data splitting, learning curves, and evaluation metrics to the digit classifier, and use them to diagnose its behavior.

Coming Soon

Rethinking the Building Blocks

Activation Functions

Examines the vanishing gradient problem and why sigmoid falls short in deep networks, then explores ReLU, Leaky ReLU, GELU, and Softmax, and how the choice of activation shapes what a network can learn.

Coming Soon

Cost Functions

Introduces cross-entropy and log-likelihood as principled loss functions for classification, explaining why mean squared error breaks down and how the right cost function accelerates learning.

Coming Soon

Digit Classifier: Upgrading Activations and Cost

A lab to swap in ReLU, softmax, and cross-entropy loss, then measure how each change affects training speed and accuracy.

Coming Soon

Stabilizing and Accelerating Training

Normalization & Initialization

Covers techniques for keeping values well-scaled throughout the network, from normalizing inputs and choosing principled weight initializations like Xavier/He to batch normalization, which re-centers and rescales activations to stabilize deep networks.

Coming Soon

Improving Gradient Descent

Explores momentum and adaptive learning rate methods such as RMSProp and Adam, which smooth out noisy updates and escape shallow local minima more effectively than vanilla SGD.

Coming Soon

Digit Classifier: Better Optimization

A lab to implement better initialization, batch normalization, and Adam, comparing convergence against the original training loop.

Coming Soon

Controlling Overfitting

Regularization

Covers L1 and L2 regularization, weight decay, and early stopping, building intuition for how penalizing large weights encourages a network to learn simpler, more generalizable solutions.

Coming Soon

Dropout and Data Augmentation

Explores dropout as implicit ensembling and data augmentation as a way to expand the training set, along with other practical techniques for closing the gap between training and validation performance.

Coming Soon

Digit Classifier: Regularization

A lab to apply weight decay, dropout, early stopping, and augmentation, using validation curves to measure their impact on generalization.

Coming Soon

Putting It All Together

Hyperparameter Tuning

Covers practical tuning strategies including learning rate schedules, batch size, grid and random search, and experiment tracking, along with a checklist for debugging networks that fail to train.

Coming Soon

Digit Classifier: The Optimized Network

A capstone lab combining every technique from the course into a tuned, well-validated digit classifier, with a final evaluation on the held-out test set.

Coming Soon

Conclusion

Conclusion

Reviews the key ideas of the course and offers guidance on where to go next in your machine learning journey.

Coming Soon

Credits

A comprehensive list of credits for the sources that inspired and informed the course material. Useful for further reading.

Coming Soon

Impart is building the infrastructure for modern education. We help students take their learning into their own hands.

Impart

© 2026 Impart. All rights reserved.