Skip to main content
Module 10 · Lesson 5 of 650/56 in the course~22 min
Module lessons (5/6)

Neural networks with scikit-learn

Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 10 — Neural networks and deep learning

MLPClassifier, loss curves, scaling, and early stopping on real tabular data.

What you'll learn in this lesson

  • Train multi-layer neural networks using scikit-learn's MLPClassifier.
  • Interpret training loss curves and check convergence.
  • Apply feature scaling, L2 regularization (alpha), and early stopping.

Overview

Writing raw backpropagation loops by hand gives deep insight into the calculus of neural networks. But for real-world projects, scikit-learn provides MLPClassifier and MLPRegressor, which handle:

Every fitted MLPClassifier exposes loss_curve_, which tracks the training loss at each epoch:

Sections covered in this lesson

  1. 1Scaling up with scikit-learn
  2. 2Key hyperparameters
  3. 3Explore non-linear hidden boundaries interactively
  4. 4Reading the loss curve
  5. 5Scaling and L2 regularization in action
  6. 6Practice
Pro Lesson · Module 10 — Neural networks and deep learning

Unlock "Neural networks with scikit-learn" and the full Machine Learning: from first principles to practice curriculum

MLPClassifier, loss curves, scaling, and early stopping on real tabular data.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.