mtr_max_error: Max Error

Description Usage Arguments Value Author(s) Examples

View source: R/regression.r

Description

mtr_max_error computes the maximum residual error, a metric that captures the worst error between the predicted value and the true value.

Usage

1
mtr_max_error(actual, predicted)

Arguments

actual

[numeric] The ground truth numeric vector.

predicted

[numeric] The predicted numeric vector, where each element in the vector is a prediction of the corresponding elements in actual.

Value

A numeric scalar output

Author(s)

An Chu

Examples

1
2
3
act <- c(3, 2, 7, 1)
pred <- c(9, 2, 7, 1)
mtr_max_error(act, pred)

chuvanan/metrics documentation built on Nov. 4, 2019, 8:52 a.m.