Log inStart free
LESSON 4.61 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

LIME

Watch LIME explain one house price from a black box with a local straight-line fit.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.61 · LIME BAYHOUSE 65 · f(x) = 192.5 K$
01
Stage 1 of 6 · Black box
A gradient boosting model of 30 trees prices house 65 at 192.5 k$. No single rule explains it.
Explain it simply

The map shows a black box, a model you can ask but can't read. A stronger blue means a higher price. The teal dot is house 65, the house to explain. The map shows size and distance, and it holds age and number at the house's values.

A price map over size and distance. House 65 sits at 80 m² and 1 km, and the model gives 192.5 k$.

house x, samples zkernel, weights βprices f and g
050100150200051015size m²distance kmblack box f, age 40 yr, number 65x · f = 192.5the black boxf(x) = 192.5 k$ · real price 179 k$050100150200051015size m²distance kmblack box f, age 40 yr, number 65x · f = 192.5the black boxf(x) = 192.5 k$ · real price 179 k$
Toy: 4.58's 48 houses · 30 boosted trees · 60 samples · seeded
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
f(x)=F0+ν∑mhm(x)\sy{f}{out}{f}(\sy{x}{data}{x}) = F_0 + \sy{nu}{param}{\nu}\textstyle\sum_m h_m(\sy{x}{data}{x})
f(80,1,40,65)=192.5,  ν=0.3f(80, 1, 40, 65) = 192.5,\; \nu = 0.3

The model adds 30 small trees to the mean price.

Common mix-ups

MYTHLIME weights show how the whole model uses each feature.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At house 88, is the size weight larger or smaller with σ = 5 than with σ = 0.75?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.