1 Upvote

Scoring Models with Sklearn MSE and MAE

Python
Model Evaluation

from sklearn.metrics import mean_squared_error, mean_absolute_error

print('MSE:',mean_squared_error(y_test,pred))
print('MAE:',mean_absolute_error(y_test,pred))

By detro - Last Updated Feb. 17, 2022, 5:09 p.m.

Did you find this snippet useful?

Sign up to bookmark this in your snippet library

COMMENTS
RELATED SNIPPETS
Top Contributors
103
100