mid_surrogate()
defines a model that serves as a surrogate model of another target model. This function can fit classification and regression models.
Usage
mid_surrogate(
mode = "regression",
params_main = NULL,
params_inter = NULL,
penalty = NULL,
custom_formula = NULL
)
Arguments
- mode
A single character string for the type of model.
- params_main
An integer for the maximum number of sample points to model main effects (`k` for main effects in midr).
- params_inter
An integer for the maximum number of sample points to model interaction effects (`k` for interactions in midr).
- penalty
A non-negative number representing the total amount of regularization (`lambda` in midr).