Skip to contents

This is a function to summarize a caretStack.

Usage

# S3 method for class 'caretStack'
summary(object, ...)

Arguments

object

An object of class caretStack

...

ignored

Examples

models <- caretList(
  x = iris[1:100, 1:2],
  y = iris[1:100, 3],
  methodList = c("rpart", "glm")
)
#> Warning: There were missing values in resampled performance measures.
meta_model <- caretStack(models, method = "lm")
summary(meta_model)
#> The following models were ensembled: rpart, glm  
#> 
#> Model Importance:
#>  rpart    glm 
#> 0.1405 0.8595 
#> 
#> Model accuracy:
#>    model_name metric     value         sd
#>        <char> <char>     <num>      <num>
#> 1:   ensemble   RMSE 0.5682643 0.05767253
#> 2:      rpart   RMSE 0.8334089 0.21435945
#> 3:        glm   RMSE 0.5627433 0.06821899