Loading…
Glossary term
A common measure of prediction error that averages the squared differences from the true values.
MSE is the average of the squared differences between predictions and true values. Squaring makes all errors positive and punishes large errors more than small ones. Its square root, RMSE, is in the same units as the data.
MSE
import numpy as np
mse = np.mean((y_true - y_pred) ** 2)It is the standard loss and metric for predicting numbers.