Learn R Programming

spartan (version 3.0.2)

meanSquaredError: Calculate the mean squared error between predictions and observed data

Description

Calculate the mean squared error between predictions and observed data

Usage

meanSquaredError(model_predictions, observed_data)

Arguments

model_predictions

Predicted dataset#

observed_data

Observed dataset (testing or validation)

Value

Mean Squared Error between the two sets