Learn R Programming

mlf (version 1.2.1)

get_mse: Mean Squared Error

Description

Estimates mean squared error from model predictions.

Usage

get_mse(truth, estimate)

Arguments

truth

test data vector or baseline accuracy to test against.

estimate

predicted vector

Examples

Run this code
# NOT RUN {
# Sample data
test <- rnorm(25, 80, 35)
predicted <- rnorm(25, 80, 50)

mlf::get_mse(test, predicted)
# }

Run the code above in your browser using DataLab