bvto: Bias-Variance Trade-Off

Description Usage Arguments Examples

View source: R/bvto.R

Description

Provides estimated error decomposition from model predictions (mse, bias, variance).

Usage

1
bvto(truth, estimate)

Arguments

truth

test data vector or baseline accuractruth 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::bvto(test, predicted)

Example output

        MSE         Var        Bias 
2504.351967 2292.690986    1.323865 

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

Related to bvto in mlf...