The boosted trees via xgboost webpage (Boosted trees via xgboost — details_boost_tree_xgboost • parsnip) states the user can pass the counts = FALSE argument to set_engine() to supply mtry values within [0,1]. If mtry is set to a value in [0, 1], I can use tune_sim_anneal() to tune the other parameters. When mtry = tune(), the mtry range is set to integers with an unknown upper limit. With counts = FALSE I was expecting the range for mtry to be a double and on [0, 1]. Is there a way to set the mtry range as a proportion for tuning using tune_sim_anneal()?
library(tidymodels)
xgb_reg <-
boost_tree(
mtry = tune(),
trees = tune(),
min_n = tune(),
tree_depth = tune(),
learn_rate = tune(),
loss_reduction = tune(),
sample_size = tune()) %>%
set_engine("xgboost", counts = FALSE) %>%
set_mode("classification")
# inspecting the mtry object below shows that it has type of integer
# and a lower limit of 1L and unknown upper limit
extract_parameter_set_dials(xgb_reg) %>%
filter(name == "mtry") %>%
pull(object) %>%
str()