Which classic decision tree algorithm does scikit-learn implement?

Quick Overview

A machine learning fundamentals question asking which classic decision tree algorithm the scikit-learn tree estimators are built on. It tests knowledge of split shape, impurity criteria, pruning, missing-value handling, and how the classic tree algorithms differ from one another.

Which classic decision tree algorithm does scikit-learn implement?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Which classic decision tree algorithm does `scikit-learn` implement in `DecisionTreeClassifier` and `DecisionTreeRegressor`? ```hint Look at the tree shape Count how many children a node in a fitted scikit-learn tree can have, and look at which split criteria and pruning options the estimators expose. ``` ### What a Strong Answer Covers - The name of the algorithm and the estimators that use it - The shape of each split and the criteria available for classification and regression - How pruning is done in scikit-learn and what the default does - Where the implementation departs from the textbook algorithm (categorical features, surrogate splits, missing values) - Why changing the split criterion does not turn the tree into a different classic algorithm ### Follow-up Questions - If a nominal feature is ordinal-encoded, which groupings of its categories can one scikit-learn split express, and how does one-hot encoding change that? - How would you choose `ccp_alpha` for a dataset? - How do ID3 and C4.5 differ from this algorithm in split criterion, split shape and pruning? - Why can two fits of the same tree on the same data produce different trees, and how do you make the result reproducible?

Overview: A machine learning fundamentals question asking which classic decision tree algorithm the scikit-learn tree estimators are built on. It tests knowledge of split shape, impurity criteria, pruning, missing-value handling, and how the classic tree algorithms differ from one another.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Which classic decision tree algorithm does scikit-learn implement in DecisionTreeClassifier and DecisionTreeRegressor?

What a Strong Answer Covers Guidance

  • The name of the algorithm and the estimators that use it
  • The shape of each split and the criteria available for classification and regression
  • How pruning is done in scikit-learn and what the default does
  • Where the implementation departs from the textbook algorithm (categorical features, surrogate splits, missing values)
  • Why changing the split criterion does not turn the tree into a different classic algorithm

Follow-up Questions Guidance

  • If a nominal feature is ordinal-encoded, which groupings of its categories can one scikit-learn split express, and how does one-hot encoding change that?
  • How would you choose ccp_alpha for a dataset?
  • How do ID3 and C4.5 differ from this algorithm in split criterion, split shape and pruning?
  • Why can two fits of the same tree on the same data produce different trees, and how do you make the result reproducible?