Mean square error and mean absolute error
Created | |
---|---|
Tags | Loss |
MSE = np.mean((ytrue - ypred)**2)
MAE = np.mean(abs( ytrue- ypred))
In practice, we always need to look for the outlier. If we have an outlier in our data, it will make the MSE loss model give more weight to the outlier than a MAE loss model. In that case, using MAE loss is more intuitive since it’s more robust to an outlier.