Learn R Programming

caretEnsemble (version 4.0.1)

shuffled_mae: Shuffled MAE

Description

Compute the mean absolute error of a model's predictions when a variable is shuffled.

Usage

shuffled_mae(model, original_data, target, pred_type, shuffle_idx)

Value

A numeric vector of mean absolute errors.

Arguments

original_data

A data.table of the original data.

target

A matrix of target values.

shuffle_idx

A vector of shuffled indices.