get_params | 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, ...) ## S3 method for class 'workflow' 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.