Learn R Programming

caretEnsemble (version 4.0.1)

stackedTrainResiduals: Extracted stacked residuals for the autoplot

Description

This function extracts the predictions, observeds, and residuals from a train object. It uses the object's stacked predictions from cross-validation.

Usage

stackedTrainResiduals(object, show_class_id = 2L)

Value

a data.table::data.table with predictions, observeds, and residuals

Arguments

object

a train object

show_class_id

For classification only: which class level to use for residuals