train_preds: Outer training fold predictions

View source: R/innercv_roc.R

train_predsR Documentation

Outer training fold predictions

Description

Obtain predictions on outer training folds which can be used for performance metrics and ROC curves.

Usage

train_preds(x)

Arguments

x

a nestcv.glmnet, nestcv.train or outercv fitted object

Details

Note: the argument outer_train_predict must be set to TRUE in the original call to either nestcv.glmnet, nestcv.train or outercv.

Value

Dataframe with columns ytrain and predy containing observed and predicted values from training folds. For binomial and multinomial models additional columns are added with class probabilities or log likelihood values.


nestedcv documentation built on Oct. 26, 2023, 5:08 p.m.