Function to calculate the mean squared error loss

Evaluation.mse_loss(data.observed, data.predicted)

Arguments

data.observed

the true data (Y)

data.predicted

the Y outcome from the estimator

Value

double the calculated mean squared error loss