The ranger, xgb.Booster, glm, or gam object inside the workflow,
rather than the workflow wrapping it. Anything that plots or interrogates a
model directly needs this rather than the tidymodels object — including
fancyfx, whose plotEffects() takes
an mgcv fit, which is what this returns for model.type: gam.
Arguments
- model
a fitted model from
fit_patch_model(), or a fitted workflow
Examples
if (FALSE) { # \dontrun{
# Prettier smooths than the generic partial effects can give:
fancyfx::plotEffects(model_engine_fit(model), dat, "SST")
} # }