mse: Mean Squared Error

Description Usage Arguments Value

View source: R/evals.R

Description

computes the mean squared error (MSE) for evaluating the accuracy of ordered/unordered probability predictions

Usage

1
mse(predictions, observed)

Arguments

predictions

matrix of predictions (n x categories)

observed

vector of observed ordered categorical outcomes (n x 1)

Value

scalar, sum MSE for given predictions


orf documentation built on March 26, 2020, 7:30 p.m.