View source: R/modeling_helpers.R
new_tof_model | R Documentation |
Constructor for a tof_model.
new_tof_model(
model,
recipe,
penalty,
mixture,
model_type = c("linear", "two-class", "multiclass", "survival"),
outcome_colnames,
training_data
)
model |
A glmnet model. |
recipe |
A prepped recipe object. |
penalty |
A double indicating which lambda value should be used within the glmnet path. |
mixture |
A double indicating which alpha value was used to fit the glmnet model. |
model_type |
A string indicating which type of glmnet model is being fit. |
outcome_colnames |
TO DO |
training_data |
TO DO |
A 'tof_model', an S3 class that includes a trained glmnet model and the recipe used to perform its associated preprocessing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.