parsnip (version 0.1.1)

null_model: General Interface for null models

Description

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.

Usage

null_model(mode = "classification")

Arguments

mode

A single character string for the type of model. Possible values for this model are "unknown", "regression", or "classification".

Engine Details

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:

parsnip

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())

Details

The model can be created using the fit() function using the following engines:

  • R: "parsnip"

See Also

fit()

Examples

Run this code
# NOT RUN {
null_model(mode = "regression")
# }

Run the code above in your browser using DataCamp Workspace