[英]Number of configurations in mlr3 hyperband tuning
How can I control the number of configurations being evaluated during hyperband tuning in mlr3?在 mlr3 的超频带调谐期间,如何控制正在评估的配置数量? I noticed that when I tune 6 parameters in xgboost(), the code evaluates about 9 configurations.
我注意到当我在 xgboost() 中调整 6 个参数时,代码评估了大约 9 个配置。 When I tune the same number of parameters in catboost(), the code starts with evaluating 729 configurations.
当我在 catboost() 中调整相同数量的参数时,代码从评估 729 个配置开始。 I am using eta = 3 in both cases.
我在这两种情况下都使用 eta = 3 。
The number of sampled configurations in hyperband is defined by the lower and upper bound of the budget hyperparameter and eta.超频带中采样配置的数量由预算超参数和 eta 的下限和上限定义。 You can get a preview of the schedule and number of configurations:
您可以预览时间表和配置数量:
mlr3hyperband::hyperband_schedule(r_min = 1, r_max = 81, eta = 3)
#> bracket stage budget n
#> 1: 4 0 1 81
#> 2: 4 1 3 27
#> 3: 4 2 9 9
#> 4: 4 3 27 3
#> 5: 4 4 81 1
#> 6: 3 0 3 34
#> 7: 3 1 9 11
#> 8: 3 2 27 3
#> 9: 3 3 81 1
#> 10: 2 0 9 15
#> 11: 2 1 27 5
#> 12: 2 2 81 1
#> 13: 1 0 27 8
#> 14: 1 1 81 2
#> 15: 0 0 81 5
mlr3hyperband::hyperband_n_configs(r_min = 1, r_max = 81, eta = 3)
#> 143
If you want to evaluate more configurations, increase the repetition
parameter of hyperband.如果要评估更多配置,请增加 hyperband 的
repetition
参数。 Hyperband will start again after evaluating the last bracket. Hyperband 将在评估最后一个括号后重新开始。 Install the latest gh version for this
devtools::install_github("mlr-org/mlr3hyperband")
.为此
devtools::install_github("mlr-org/mlr3hyperband")
安装最新的 gh 版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.