Skip to contents

Returns a dataframe with two columns:

  • name - name of the model

  • spec - parsnip model_spec object describing the model

Usage

tt_get_model_specs(models = NULL)

Arguments

models

A vector of TT model names. By default, when this parameter is set to NULL, the full list of supported models is taken:

  • "xgboost" model from xgboost package

  • "lda" model from MASS package

  • "lightgbm" model from lightgbm package

  • "rf" (random forest) model from ranger package

  • "glmnet" model from glmnet package

  • "svm_rbf" model from kernlab package

Examples

tt_get_model_specs()
#> # A tibble: 6 × 2
#>   name     spec     
#>   <chr>    <list>   
#> 1 xgboost  <spec[+]>
#> 2 lda      <spec[+]>
#> 3 lightgbm <spec[+]>
#> 4 rf       <spec[+]>
#> 5 glmnet   <spec[+]>
#> 6 svm_rbf  <spec[+]>
tt_get_model_specs(c("xgboost", "lda", "lightgbm"))
#> # A tibble: 3 × 2
#>   name     spec     
#>   <chr>    <list>   
#> 1 xgboost  <spec[+]>
#> 2 lda      <spec[+]>
#> 3 lightgbm <spec[+]>