General Interface for null models
null_model()
is a way to generate a specification of a model before
fitting and allows the model to be created using R. It doesn't have any
main arguments.
null_model(mode = "classification")
mode |
A single character string for the type of model. Possible values for this model are "unknown", "regression", or "classification". |
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()
## Model Specification (regression) ## ## Computational engine: parsnip ## ## Model fit template: ## nullmodel(x = missing_arg(), y = missing_arg())
null_model() %>% set_engine("parsnip") %>% set_mode("classification") %>% translate()
## Model Specification (classification) ## ## Computational engine: parsnip ## ## Model fit template: ## nullmodel(x = missing_arg(), y = missing_arg())
null_model(mode = "regression")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.