MSE

Definition

Mean Squared Error (MSE) is defined as the average of the squared differences between the predicted and the actual values. The formula for MSE is:

\[MSE = \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y_i})^2\]

where \(y_i\) is the actual value, \(\hat{y_i}\) is the predicted value, and \(n\) is the number of samples.

Implementation Notes