tune
is great & super useful for tuning model parameters - is it possible to also tune other parameters that aren't specified by a model (e.g., tune features rather than parameters)? The tune()
documentation makes it seem like it may be possible, but I'm not 100% sure.
An example of this may be for predicting the winner of a game in sports & using each team's ELO rating as a predictor. It may be useful to tune the k-factor, rather than use the sport's ~generally recognized~ factor. I'm imagining something like this:
sports_rec <-
recipe(winner ~ ., data = sports_train) %>%
step_mutate(ELO = rating + tune("k_factor") * (score - expected))
This example would definitely fail because I think it'd need to be a summary statistic, but the main takeaway would be trying to tune something outside of a model's predefined parameters.
I don't have a specific use case for anything I'm working on, but can imagine how that may be useful in the future. I figured this question was too general for stack overflow, but still may be interesting!