text_plain_output_1.png
from sklearn.metrics import mean_absolute_error

from sklearn.tree import DecisionTreeRegressor

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

from sklearn.metrics import mean_absolute_error
predicted_wine_quality = dtree.predict(X_test)
mean_absolute_error(y_test, predicted_wine_quality)