Machine Learning for Beginners in Python: Decision Tree Regression

Decision Tree Regression Preliminaries /* Load libraries */ from sklearn.tree import DecisionTreeRegressor from sklearn import datasets Load Boston Housing Dataset /* Load data with only two features */ boston = datasets.load_boston() X = boston.data[:,0:2] y = boston.target Create Decision Tree Decision tree regression works similar to decision tree classification, however instead of reducing Gini impurity … Continue reading Machine Learning for Beginners in Python: Decision Tree Regression