TorchedUp
ProblemsPremium
TorchedUp
MSE LossEasy
ProblemsPremium

MSE Loss

Implement Mean Squared Error loss.

Signature: def mse_loss(y_pred: np.ndarray, y_true: np.ndarray) -> float

Math

Asked at

Python (numpy)0/3 runs today

Test Results

○perfect
○typical
○large error🔒 Premium
○loss is non-negative
○loss is non-negative (negative residuals)
○symmetric: mse(a,b) == mse(b,a)
○symmetric (swapped): mse(b,a) == mse(a,b)
Advertisement