DecisionTreeRegressor
DecisionTreeRegressor is a scikit-learn estimator class that fits decision-tree models to predict numerical target values.
Grokking Machine Learning
A scikit-learn estimator class that fits regression decision trees to numerical targets.
- How it is used
- Fits regression trees that predict numerical labels by recursively partitioning feature values.
- How deep it goes
- Explains cutoff testing, mean squared error, recursive splitting, depth control, and leaf predictions.
- Examples
- Uses eight users’ ages and weekly app engagement, with cutoffs at 15, 35, and 65.
- What you can do after
- Apply it via scikit-learn by fitting DecisionTreeRegressor(max_depth=2) to feature and label arrays.
Read how Grokking Machine Learning explains DecisionTreeRegressor →
Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI
A scikit-learn estimator that fits a decision tree for predicting numeric target values.
- How it is used
- Deploys regression trees as sequential correction models inside gradient boosting, including boosting systems for classification.
- How deep it goes
- Explains the estimator’s boosting role and key complexity parameters, but does not detail tree-splitting internals.
- Examples
- Demonstrates the estimator in a custom GradientBoosting class configured with max_depth, min_samples_leaf, and random_state.
- What you can do after
- Builds a custom gradient boosting classifier using scikit-learn’s DecisionTreeRegressor and tunes basic tree-complexity controls.
Also covered in
- Grokking Machine Learning, Second EditionIn early access (MEAP)
Related concepts
- gradient boostingused by · Gradient boosting is an ensemble-learning technique that sequentially adds predictive models fitted to reduce a loss by following its gradient.
- decision treeimplements · A decision tree is a tree-structured model or representation in which successive tests or choices lead through branches to outcomes, predictions, or actions.
- tree depthconfigured by · Tree depth is the number of hierarchical steps from a root to a node; a maximum-depth setting limits the greatest number of such steps permitted during construction or traversal.
Questions about DecisionTreeRegressor
What is DecisionTreeRegressor?
DecisionTreeRegressor is a scikit-learn estimator class that fits decision-tree models to predict numerical target values.
Which Manning books explain DecisionTreeRegressor?
Grokking Machine Learning and Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI.
What is the difference between DecisionTreeRegressor and DecisionTreeClassifier?
DecisionTreeRegressor is a scikit-learn estimator class that fits decision-tree models to predict numerical target values. DecisionTreeClassifier is a scikit-learn estimator that learns a decision-tree model to classify inputs using feature-based splits.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

