get_mse: Mean Squared Error

Description Usage Arguments Examples

View source: R/get_mse.R

Description

Estimates mean squared error from model predictions.

Usage

1
get_mse(truth, estimate)

Arguments

truth

test data vector or baseline accuracy to test against.

estimate

predicted vector

Examples

1
2
3
4
5
# Sample data
test <- rnorm(25, 80, 35)
predicted <- rnorm(25, 80, 50)

mlf::get_mse(test, predicted)

Example output

[1] 5214.219

mlf documentation built on May 1, 2019, 10:34 p.m.

Related to get_mse in mlf...