1 Upvote

Scoring Models with Sklearn MSE and MAE

Python
Supervised Learning

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 Dec. 6, 2021, 11:28 p.m.

Did you find this snippet useful?

Sign up to bookmark this in your snippet library

COMMENTS
RELATED SNIPPETS
Top Contributors
75