Scoring Models with Sklearn MSE and MAE
Python
1| from sklearn.metrics import mean_squared_error, mean_absolute_error 2| 3| print('MSE:',mean_squared_error(y_test,pred)) 4| print('MAE:',mean_absolute_error(y_test,pred))
133
121
117
109