Slide 9
Slide 9 text
tuneでハイパーパラメータを探索
df_tuned = tune_bayes(
rec,
model = model,
resamples = df_cv,
param_info = params,
initial = 5,
iter = 50,
metrics = metric_set(rsq),
control = control_bayes(no_improve = 10, verbose = TRUE))
> df_tuned
# 5-fold cross-validation
# A tibble: 90 x 5
splits id .metrics .notes .iter
*
1 Fold1 0
2 Fold2 0
3 Fold3 0
4 Fold4 0
5 Fold5 0
# … with 80 more rows
ハイパーパラメータの探索
今回はベイズ最適化で探す