Scoring Models with Sklearn MSE and MAE
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.
Catboost - XGBoost - Seaborn - Model evaluation - Random forest