text_plain_output_1.png
from sklearn.tree import DecisionTreeRegressor

from sklearn.tree import DecisionTreeRegressor
dtree = DecisionTreeRegressor(random_state=22)
dtree.fit(X_train, y_train)

print('Making predictions for the following 5 wines:')
print(X_test.head())
print('The predictions are')
print(dtree.predict(X_test.head()))