Build Decision Trees From Scratch thumbnail

Build Decision Trees From Scratch

14 lessons5 topics6h 46mself-paced

About this course

Build classification and regression decision trees from scratch in Python and understand the model behind random forests and gradient boosting. Trees are the most readable models in machine learning, and once you have written one you can reason about any ensemble built on them.

What you will learn

  • What a split has to decide and how Gini impurity measures it for categorical and numerical data
  • Growing a full classification tree in code, then pruning it
  • Regression trees from a single feature to many features
  • How to explain trees clearly in an interview

What is included

  • 14 focused lessons with about 7 hours of video, all code written live
  • Complete lecture notes
  • Interview preparation summary
  • Course end test

Who it is for

Learners who know basic Python and want their first complete, from-scratch ML algorithm.

Course curriculum

5 topics • 14 lessons

6h 46m
Classification trees6 items
  1. What is Gini Impurity?
  2. Let us start building a classification tree
  3. Gini Impurity for numerical data
  4. Finish building the classification tree
  5. Pruning classification trees
  6. Code an entire classification tree in Python
Regression trees5 items
  1. What are regression trees?
  2. Let's start building a regression tree
  3. Finish building the regression tree
  4. Regression trees with multiple features
  5. Code an entire regression tree in Python
Interview preparation1 items
  1. Interview prep: Summary of regression and classification trees
Lecture Notes2 items
  1. Vizuara Decision Trees Lecture Notes Video
  2. Link to lecture notes
Course End Test1 items
  1. Course End Testcourse end test