compute_identity: Compute Identity

Description Usage Arguments Value Examples

View source: R/loss_functions.R

Description

Best is -1, worst is 0. Objective is to minimize.

Usage

1
compute_identity(prediction, actual)

Arguments

prediction

Numeric vector same length as actual

actual

Numeric vector same length as prediction

Value

Numeric vector length one

Examples

1
2
3
4
compute_identity(1:10, 1:10)
compute_identity(1:10, c(1:9, 1))
compute_identity(c("hey", "hello"), c("hey", "he"))
compute_identity(runif(10), sample(c(1,0), 10, replace=TRUE))

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