View source: R/get_train_perf.R
get_train_perf | R Documentation |
caret::train
objectFunction to return a tidy dataframe with performance information
from a model trained by caret::train
.
get_train_perf(trained.model)
trained.model |
Result of a |
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
.
model1 <- caret::train(data = mtcars, mpg ~ ., method = "glm")
get_train_perf(model1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.