DecisionTreeRegression
DashAI.back.models.scikit_learn.DecisionTreeRegression
Decision tree regressor that recursively partitions the feature space.
DecisionTreeRegressor builds a binary tree by choosing the split that most reduces the MSE (default) at each internal node. Leaf nodes predict the mean of the training targets in the region. Decision trees are fast, interpretable, and require no feature scaling, but tend to overfit without pruning.
Key hyperparameters include max_depth, min_samples_split,
min_samples_leaf, and max_leaf_nodes. The implementation wraps
scikit-learn's DecisionTreeRegressor.
References
- [1] Breiman, L. et al. (1984). Classification and Regression Trees. Wadsworth.
- [2] https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeRegressor.html
Parameters
- max_depth, default=
None - The maximum depth of the tree. If None, nodes are expanded until all leaves are pure or fewer than min_samples_split samples remain.
- min_samples_split : integer, default=
2 - Minimum number of samples required to split an internal node.
- min_samples_leaf : integer, default=
1 - Minimum number of samples required to be at a leaf node.
- max_leaf_nodes, default=
None - Grow a tree with at most max_leaf_nodes in best-first fashion. If None, unlimited leaf nodes.
- min_impurity_decrease : number, default=
0.0 - A node is split if the split induces a decrease of the impurity greater than or equal to this value.
- random_state, default=
None - The seed of the pseudo-random number generator. Pass an int for reproducible output, or None to not set a specific seed.