liveBook · Manning

Tree-based method

As explained in Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A tree-based model is a predictive model whose decision structure is formed from one or more decision trees.

A tree-based method predicts by combining one or more decision trees. Each tree repeatedly splits data into more homogeneous subsets, then uses terminal leaves to produce classifications or regression predictions. section 5.1

Use the tree structure to understand the main workflow:

  • Begin at the root, representing the available dataset, and test a feature condition such as a binary split. section 5.1
  • Search features and observed values for splits that improve target homogeneity, using measures such as entropy, information gain, or Gini impurity. section 5.1
  • Follow branches to terminal leaves, where instances receive predictions; limit growth or prune trees when a simpler structure is appropriate. section 5.1

Classifying Airbnb listings

An Airbnb NYC workflow encodes categorical columns, passes numeric columns through preprocessing, and places a DecisionTreeClassifier inside a scikit-learn pipeline evaluated with five-fold cross-validation.

How Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI covers it

How deep it goes
Explains roots, branches, leaves, split search, impurity criteria, and pruning, but does not detail ensemble variants.
Examples
Uses animal classification by legs and eyes and Airbnb NYC listing classification with categorical and numeric features.
What you can do after
Apply it via scikit-learn pipelines, preprocessing features and evaluating a DecisionTreeClassifier with cross-validation.
How it connects
Connects decision trees with ensemble algorithms, classification, regression, and feature preprocessing.

Also explained in

Compare how 3 books explain tree-based method →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI. The section links point to the parts of the book it draws on.