According to this (https://dials.tidymodels.org/reference/grid_max_entropy.html) page, the output of a grid function may vary depending on whether we use a parameter object produced by parsnip
and recipes
, or we directly use a parameter object. However, it is not clear how one can obtain the parameter range if we use parameters
object created from a model or recipe. For example, the default range of neighbors()
is [1, 10]. When I use
myGrid <- grid_latin_hypercube(extract_parameter_set_dials(x), size = 25)
where x
is a model, and obtain the range using
range(myGrid$neighbors)
I get some values for my neighbors
that fall outside [1,10]. How can I obtain the default range of neighbors
when I use a parameters
object created from a model or recipe?