IntermediateAbout 20 min

    Overfitting & Regularization

    Read the full article on Substack

    7 min read.

    Interactive demonstration of overfitting and how regularization techniques (L1, L2, Dropout) help.

    Balanced: the curve follows the trend. Training error 0.25, validation error 0.43.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    L1 or L2?

    Sort

    Sort each property by the penalty it describes.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    L1 (Lasso)

    Drop items here

    L2 (Ridge)

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    Overfitting is when a model…

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going