get_train_perf: Get tidy training performance of a 'caret::train' object

View source: R/get_train_perf.R

get_train_perfR Documentation

Get tidy training performance of a caret::train object

Description

Function to return a tidy dataframe with performance information from a model trained by caret::train.

Usage

get_train_perf(trained.model)

Arguments

trained.model

Result of a train() call in caret.

Details

Writing this as a function that tidily gets performance (rather than tidies performance returned by getTrainPerf) is necessary for access to the .$trainingData for nobs.

Examples

model1 <- caret::train(data = mtcars, mpg ~ ., method = "glm")
get_train_perf(model1)

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.