Log inStart free
LESSON 4.C8 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

One model explained four ways

Watch four methods explain one house-price model, and disagree.


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.C8 · EXPLAIN BAYHOUSE 65 · MODEL 192.5 K$ · REAL 179 K$
01
Stage 1 of 6 · One model
Thirty small trees price each house. House 65 gets 192.5 k$; its real price is 179 k$.
Explain it simply

Each dot is one of 24 test houses that the model never saw. It sits across at its real price and up at the model's price. The blue ring is house 65, the house to explain. Four methods now explain this one model.

24 test houses, real price across, model price up. House 65 is ringed at 179 and 192.5 k$.

houses, features, samplesprices, PD, pushes uperror rise, pushes downLIME weights, kernel
100150200250300100150200250300real price, k$model price, k$house 65house 65size80 m²distance1 kmage40 yrnumberno. 65one model, 24 test housestest RMSE 22.4 k$ · house 65: real 179, model 192.5100150200250300100150200250300real price, k$model price, k$house 65house 65size80 m²distance1 kmage40 yrnumberno. 65one model, 24 test housestest RMSE 22.4 k$ · house 65: real 179, model 192.5
Toy: 4.58's 48 houses · 30 boosted trees
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
f(x)=F0+ν∑m=130hm(x)\sy{f}{out}{f}(\sy{x}{data}{x}) = F_0 + \sy{nu}{param}{\nu} \textstyle\sum_{m=1}^{30} h_m(\sy{x}{data}{x})
f(80,1,40,65)=195.9+0.3∑mhm=192.5f(80, 1, 40, 65) = 195.9 + 0.3 \textstyle\sum_m h_m = 192.5

The price is the mean training price plus 30 small tree steps.

Common mix-ups

MYTHThe four methods rank the features the same way.

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

Predict, then reveal
3 CHECKS · PRO
Q01If LIME's kernel width changes, does the SHAP value for distance change too?

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.