Skip to content

Commit 6420a50

Browse files
authored
fix learner in bayesian optimization (#888)
* fix learner in bayesian optimization * ...
1 parent f543e6d commit 6420a50

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

book/chapters/appendices/errata.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ This appendix lists changes to the online version of this book to chapters inclu
3737
* Replaced `OptimInstanceSingleCrit$new()` with `oi()`.
3838
* Add `oi()` to the table about important functions.
3939
* Use `$encapsulate()` method instead of the `$encapsulate` and `$fallback` fields.
40+
* In example 5.4.4 `lrn("svm")` was tuned instead of `lrn("rpart")`.
4041

4142
## 6. Feature Selection
4243

book/chapters/chapter5/advanced_tuning_methods_and_black_box_optimization.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ lrn_rpart = lrn("classif.rpart",
936936
maxdepth = to_tune(1, 30)
937937
)
938938
939-
instance = tune(tuner, tsk("sonar"), lrn_svm, rsmp("cv", folds = 3),
939+
instance = tune(tuner, tsk("sonar"), lrn_rpart, rsmp("cv", folds = 3),
940940
msrs(c("classif.tpr", "classif.fpr")), 25)
941941
```
942942

0 commit comments

Comments
 (0)