Skip to content

Commit 59dc0a6

Browse files
committed
fix vignettes
1 parent d5bdac8 commit 59dc0a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vignettes/supplementary/machine_learning_with_mlrmbo.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Afterwards, we can run `tuneParams()` and check the results.
203203
```{r pipeline_tuning}
204204
ctrl = makeMBOControl()
205205
ctrl = setMBOControlTermination(ctrl, iters = iters)
206-
lrn = makeFilterWrapper(makeModelMultiplexer(list("classif.svm", "classif.naiveBayes")))
206+
lrn = makeFilterWrapper(makeModelMultiplexer(list("classif.svm", "classif.naiveBayes")), fw.method = "variance")
207207
tune.ctrl = makeTuneControlMBO(mbo.control = ctrl)
208208
209209
res = tuneParams(lrn, iris.task, cv3, par.set = par.set, control = tune.ctrl, show.info = FALSE)

vignettes/supplementary/mixed_space_optimization.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ This is done by introducing a new variable for each _method_.
159159
```{r wrapper}
160160
wrap.fun = function(x) {
161161
x$j = if (x$method == "a") x$ja else x$jb
162-
x = dropNamed(x, c("ja", "jb"))
162+
x = x[setdiff(names(x), c("ja", "jb"))]
163163
fun(x)
164164
}
165165
```

0 commit comments

Comments
 (0)