Function to calculate the mean squared error (uses the mse loss function internally).

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

Arguments

data.observed

the true data (Y)

data.predicted

the Y outcome from the estimator

Value

double the calculated MSE.