get_params {autostats} | R Documentation |
s3 method to extract params of a model with names consistent for use in the 'autostats' package
get_params(model, ...)
## S3 method for class 'xgb.Booster'
get_params(model, ...)
model |
a model |
... |
additional arguments |
list of params
iris %>%
framecleaner::create_dummies() -> iris_dummies
iris_dummies %>%
tidy_formula(target = Petal.Length) -> p_form
iris_dummies %>%
tidy_xgboost(p_form, mtry = .5, trees = 5L, loss_reduction = 2, sample_size = .7) -> xgb
## reuse these parameters to find the cross validated error
rlang::exec(auto_model_accuracy, data = iris_dummies, formula = p_form, !!!get_params(xgb))