Open
Description
Came up here: https://stackoverflow.com/questions/72222099/how-do-space-filling-parameter-grids-change-when-we-call-them-by-parsnip-and-rec
While it is possible to extract the parameter_set and inspect it, it would be nice if these modified ranges were also noted in the documentation e.i. in ?details_nearest_neighbor_kknn
for the following example
library(tidymodels)
knn_spec <- nearest_neighbor(neighbors = tune())
neighbors()
#> # Nearest Neighbors (quantitative)
#> Range: [1, 10]
extract_parameter_set_dials(knn_spec)$object[[1]]
#> # Nearest Neighbors (quantitative)
#> Range: [1, 15]