Learn R Programming

Laurae (version 0.0.0.9001)

df_medae: Median Absolute Error (MedAE) (computation function, single vector)

Description

This function computes the Median Absolute Error loss (MedAE) provided preds and labels, but cannot handle multiclass problems.

Usage

df_medae(preds, labels)

Arguments

preds
The predictions.
labels
The labels.

Value

The Median Absolute Error.

Examples

Run this code
library(data.table)

# Regression problem
my_preds <- dnorm(rnorm(n = 9*6*10))
my_labels <- runif(n = 9*6*10)
df_medae(my_preds, my_labels)

Run the code above in your browser using DataLab