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))
Did you find this snippet useful?

Sign up for free to to add this to your code library