当前位置: 动力学知识库 > 问答 > 编程问答 >

scikit learn - Is tree.DecisionTreeRegressor a Model Tree or a Regression Tree?

问题描述:

My understanding is that:

1) The target value of each leaf in a Regression Tree is calculated as the mean of the target values of the instances that reached that leaf during training.

2) The value of each leaf in a Model Tree is a linear function using a subset of the features, determined by performing a linear regression of the instances that reached that leaf during training.

Is the tree.DecisionTreeRegressor in scikit-learn a Regression Tree or a Model Tree?

网友答案:

You're understanding is right. Mathematically, a regression tree represents a piecewise constant function, while a (linear) model tree is a piecewise linear function.

DecisionTreeRegressor is a regression tree.

分享给朋友:
您可能感兴趣的文章:
随机阅读: