Gradient Boosting with Decision Stumps

hard
Unit 19 · Trees & Boosting0/0 to milestone

Gradient boosting builds a strong model from many weak ones: each new model fits the residuals, the errors left by the models so far. With squared error, the residuals are exactly the negative gradient.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Gradient Boosting with Decision Stumps · TechGradify