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 21 min to read

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

Trees, forests and boosting

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

The board that sorts every task by how checkable it is. A loan that defaults or does not default is fully checkable, so every model in this lesson can be graded exactly on rows it never saw.

Before you start. You need Precision and Recall (where to set the spam filter's bar), where one weighted sum plus a threshold answered a yes-or-no question, and where accuracy on mail the filter had never seen was the honest score. You need How It Learns (loss, gradient descent, backprop), where a model got better by measuring its error and stepping to reduce it. You will meet the same two habits here: score on rows the model did not see, and improve by reducing the error that is left.

Lesson 24 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

  • A table of numbers, and 1,785 teams
  • One question after another: the decision tree
  • Impurity: a number for how mixed a group is
  • A forest: many trees that disagree, then vote
  • Boosting: each new tree fixes what is still wrong
  • Feature importance: which column did the work
  • Squared error and Gini agree
  • Bootstrap, and the two sources of randomness
  • Boosting’s formula, in English
  • The hand-run boosting on ten loans
  • The 600-loan experiment, in full
  • Why impurity importance misleads, and permutation importance
  • Trade-offs and where each wins

Terms it explains: decision tree, leaf, Gini impurity, random forest, Gradient boosting, XGBoost, feature importance, Common mistakes, bootstrap sample, permutation importance.

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