View source: R/ML_ParsnipModel.R
ParsnipModel | R Documentation |
Convert a model specification from the parsnip package to one that can be used with the MachineShop package.
ParsnipModel(object, ...)
object |
model specification from the parsnip package. |
... |
tuning parameters with which to update |
ParsnipModel
class object that inherits from MLModel
.
as.MLModel
, fit
, resample
## Requires prior installation of suggested package parsnip to run
prsp_model <- parsnip::linear_reg(engine = "glmnet")
model <- ParsnipModel(prsp_model, penalty = 1, mixture = 1)
model
model_fit <- fit(sale_amount ~ ., data = ICHomes, model = model)
predict(model_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.