Machine Learning, Decision Tree, Python, Tutorial, Learning.
of impurity is a useful criteria for classification. To use a decision tree for regression, however, we need an impurity metric that is suitable for continuous variables, so we define the impurity measure using the weighted mean squared error (MSE) of the children nodes instead: Here, Nt is the