# \donttest{
## 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)
# }
Run the code above in your browser using DataLab