This function takes the formula from a recipe, and turns numeric predictors into smooths with a given k. This formula can be passed to a workflow or workflow set when fitting a gam.
Arguments
- object
a recipes::recipe, already trained
- k
the k value for the smooth