Decision trees and random forests with scikit-learn

10 steps · about 3 h 38 min · Beginner

  1. StatQuest: Decision Trees (video, StatQuest with Josh Starmer (YouTube), 17 min)

    It starts with the core idea: how a tree picks splits using Gini impurity.

  2. StatQuest: Decision Trees, Part 2 - Feature Selection and Missing Data (video, StatQuest with Josh Starmer (YouTube), 6 min)

    This short follow-up covers feature selection and missing data before you write any code.

  3. Decision Trees and Random Forests in Python (article, Nick McCullum, 25 min)

    It gives a quick first code-along: train, predict and score a tree, then a forest.

  4. 1.10. Decision Trees — scikit-learn documentation (doc, scikit-learn, 30 min)

    The official guide explains how trees work in scikit-learn, their limits, and the overfitting controls such as max_depth and pruning.

  5. StatQuest: Random Forests Part 1 - Building, Using and Evaluating (video, StatQuest with Josh Starmer (YouTube), 10 min)

    It shows how bootstrapping and random feature subsets turn weak, unstable trees into a strong ensemble.

  6. In-Depth: Decision Trees and Random Forests (reference, Jake VanderPlas, Python Data Science Handbook, 30 min)

    Its visual examples show tree overfitting and how the ensemble smooths decision boundaries.

  7. 7.3. Ensemble learning — Transparent ML Intro (article, Alan Turing Institute, 20 min)

    It places bagging, random forests and boosting side by side so you see where forests fit.

  8. Decision Trees and Pruning - Build with AI Today (tutorial, Build with AI Today, 30 min)

    It teaches cost-complexity pruning with ccp_alpha, and why permutation importance is more reliable than Gini importance.

  9. Decision Trees and Random Forests Examples (tutorial, Carnegie Mellon University (Kitchin group), 30 min)

    It gives regression examples with DecisionTreeRegressor and RandomForestRegressor, so you can apply the ideas beyond classification.

  10. Random forest (reference, Wikipedia, 20 min)

    It closes with the history and theory (Breiman, bagging, variance reduction) behind what you just built.