A wrapper around dials::grid_<functions>
to create a sklearn suitable grid
rpwf_grid_gen_.Rd
This function takes whatever grid functions that are available in {dials}
,
converts it to a sklearn suitable format by renaming the hyper parameters as
well as adding fixed parameters to overwrite the default values in sklearn if
provided and perform some cleaning such as converting R mtry
counts to
Python col_by_sample
proportion.
Arguments
- model
a model spec object defined by
{parsnip}
.- preproc
a recipe object defined by
{recipes}
.- rename_fun
a function to rename the grid, generated by
rpwf_grid_rename_()
- grid_fun
a
dials::grid_<functions>
, e.g.,dials::grid_random()
,dials::grid_latin_hypercube()
. DefaultNULL
assumes that no grid search is performed and sklearn defaults are used.- ...
additional arguments for the
grid_fun
functions.