create_loss_func: Pick one of the loss functions from the package.

Description Usage Arguments Value Examples

View source: R/loss_functions.R

Description

Pick one of the loss functions from the package.

Usage

1

Arguments

loss

Character vector length one specifying which loss function you want.

Value

Returns a function that has two arguments prediction (Numeric vector same length as actual), and actual (Numeric vector same length as prediction), and returns a Numeric vector length one.

Examples

1
create_loss_func("log_lik")

JohnNay/eat documentation built on May 7, 2019, noon