Mean Squared Error (L2 Loss)

The Mean Squared Error (MSE) is the average squared loss across a dataset,

where is the actual value, and is the predicted value for a given observation .