Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 03 · AI · Past the basics · about 20 min to read

Watch: What AGI means, and who gets to say
▶ VideoPlay it as a journeyTutor comes with a plan

Honest scores: cross-validation, leakage and bias-variance

How Do You Know It's Good
How Do You Know It's Good · Open board

The board that asks how you know a model is good. This lesson is the first answer for models that learn from rows of numbers: grade them only on rows they have never seen.

Before you start. You need Precision and Recall (where to set the spam filter's bar), where a model gave a yes-or-no answer and you counted its right and wrong answers in four boxes. You need How It Learns (loss, gradient descent, backprop), where a model nudges its weights to make its error smaller on the examples it is shown. This lesson asks the next question: error on which examples? It also feeds Trees, forests and boosting and Groups nobody labelled: k-means and PCA, whose models need the same honest grading.

Lesson 26 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2009: the Netflix Prize and the half nobody could see
  • Training, validation and test sets: three piles with three jobs
  • Overfitting: a curve that learns the noise
  • Cross-validation: five tests instead of one
  • Leakage: when the answer sneaks into the question
  • Bias and variance: two ways to be wrong
  • Regularisation: a penalty that tames the wobble
  • Metrics beyond accuracy
  • Where honest splits go wrong in practice
  • All of it in code

Terms it explains: training set, validation set, test set, overfitting, Cross-validation, Leakage, Common mistakes, Bias, Variance, underfitting, Regularisation, 2).sum(1) > ((Z-mp).

Lab

The filter has scored every email. How sure must it be before one goes to the spam folder?

Drag How sure before it goes to the spam folder from 0.90 down to 0.20 and watch false alarms per 1,000 good emails climb.

Open The decision threshold

Related papers

Review AI