Utility Classification call to parsnip
Source: R/utils-class-to-parsnip.R
fast_classification_parsnip_spec_tbl.Rd
Creates a tibble of parsnip classification model specifications.
Arguments
- .parsnip_fns
The default for this is set to
all
. This means that all of the parsnip classification functions will be used, for examplebag_mars()
, orbart()
. You can also choose to pass a c() vector likec("barg_mars","bart")
- .parsnip_eng
The default for this is set to
all
. This means that all of the parsnip classification engines will be used, for exampleearth
, ordbarts
. You can also choose to pass a c() vector likec('earth', 'dbarts')
Details
Creates a tibble of parsnip classification model specifications. This will create a tibble of 32 different classification model specifications which can be filtered. The model specs are created first and then filtered out. This will only create models for classification problems. To find all of the supported models in this package you can visit https://www.tidymodels.org/find/parsnip/
See also
Other Utility:
core_packages()
,
create_splits()
,
create_workflow_set()
,
fast_regression_parsnip_spec_tbl()
,
full_internal_make_wflw()
,
install_deps()
,
load_deps()
,
match_args()
Examples
fast_classification_parsnip_spec_tbl(.parsnip_fns = "logistic_reg")
#> # A tibble: 6 × 5
#> .model_id .parsnip_engine .parsnip_mode .parsnip_fns model_spec
#> <int> <chr> <chr> <chr> <list>
#> 1 1 brulee classification logistic_reg <spec[+]>
#> 2 2 gee classification logistic_reg <spec[+]>
#> 3 3 glm classification logistic_reg <spec[+]>
#> 4 4 glmer classification logistic_reg <spec[+]>
#> 5 5 glmnet classification logistic_reg <spec[+]>
#> 6 6 LiblineaR classification logistic_reg <spec[+]>
fast_classification_parsnip_spec_tbl(.parsnip_eng = c("earth","dbarts"))
#> # A tibble: 4 × 5
#> .model_id .parsnip_engine .parsnip_mode .parsnip_fns model_spec
#> <int> <chr> <chr> <chr> <list>
#> 1 1 earth classification bag_mars <spec[+]>
#> 2 2 earth classification discrim_flexible <spec[+]>
#> 3 3 dbarts classification bart <spec[+]>
#> 4 4 earth classification mars <spec[+]>