Decision Tree for Regression - Nori12/Machine-Learning-Tutorial GitHub Wiki
Machine Learning Tutorial
Decision Tree for Regression
OBS: The DecisionTreeRegressor (and all other tree-based regression models) is not able to extrapolate.
Verificar código:
from sklearn.tree import DecisionTreeRegressor
tree = DecisionTreeRegressor(max_depth=4, random_state=0)