Learn R Programming

Laurae (version 0.0.0.9001)

df_medpae: Median Absolute Percentage Error (MedPAE) (computation function, single vector)

Description

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

Usage

df_medpae(preds, labels)

Arguments

preds
The predictions.
labels
The labels.

Value

The Median Absolute Percentage 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_medpae(my_preds, my_labels)

Run the code above in your browser using DataLab