rata -rata kesalahan absolut dalam formula pembelajaran mesin

from sklearn.metrics import mean_absolute_error

# predicting home prices in some area
predicted_home_prices = mycity_model.predict(X)
mean_absolute_error(y, predicted_home_prices)
Alamin