run boosting-passo-per-passo.bas
MDN-119:44
DEMO by Michele di Nuzzo

Boosting step by step

MDN · LAB BOOSTING STEP BY STEP Gradient boosting · 2001
Aggiungi un albero
add a tree to the model
+10
add ten trees
Avvia
start adding trees continuously; it becomes “Pausa” (pause)
Ricomincia
restart from the average prediction
tasso di apprendimento ν
learning rate ν: how far each tree moves the prediction
ceppi (1 livello) / 2 livelli / 3 livelli
stumps (1 level), 2 or 3 levels: depth of the next trees

▶ Run ⬇ Download (.html)

The lab builds gradient boosting tree after tree on a single variable, the days since the last purchase of 3,000 loyalty card customers. On the left are the risk curve and the true rates every 15 days; on the right, the average residuals and the latest tree chasing them. The lab’s interface is in Italian.

Things to try

  • Starting from the average: before the first tree the curve is flat and the residuals are the distance to be covered.
  • One piece at a time: compare ν = 0.1 with ν = 1.
  • How many trees: after a few dozen the residuals die out; if you go on, the trees chase the noise.

The article: Boosting step by step.

The demo is a single HTML file: download it and use it offline, even without an internet connection. Licence: CC BY-NC 4.0 — you may share it, crediting the author and this page, but not for commercial purposes.