null_model | R Documentation |
null_model()
defines a simple, non-informative model. It doesn't have any
main arguments. This function can fit classification and regression models.
null_model(mode = "classification")
mode |
A single character string for the model mode (e.g. "regression"). |
The model can be created using the fit()
function using the
following engines:
R: "parsnip"
Engines may have pre-set default arguments when executing the model fit call. For this type of model, the template of the fit calls are below:
null_model() %>% set_engine("parsnip") %>% set_mode("regression") %>% translate()
## Null Model Specification (regression) ## ## Computational engine: parsnip ## ## Model fit template: ## parsnip::nullmodel(x = missing_arg(), y = missing_arg())
null_model() %>% set_engine("parsnip") %>% set_mode("classification") %>% translate()
## Null Model Specification (classification) ## ## Computational engine: parsnip ## ## Model fit template: ## parsnip::nullmodel(x = missing_arg(), y = missing_arg())
fit.model_spec()
null_model(mode = "regression")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.