Skip to content

Commit b787080

Browse files
committed
adapt to mlr changes in getHyperParsString
1 parent f1f9e00 commit b787080

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/exampleRun.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ exampleRun = function(fun, design = NULL, learner = NULL, control,
9393
messagef("Performing MBO on function.")
9494
if (is.null(design))
9595
messagef("Initial design: %i. Sequential iterations: %i.", control$init.design.points, control$iters)
96-
messagef("Learner: %s. Settings:\n%s", learner$id, mlr:::getHyperParsString(learner))
96+
messagef("Learner: %s. Settings:\n%s", learner$id, mlr:::getHyperParsString(learner, show.missing.values = FALSE))
9797
}
9898

9999
# run optimizer now
@@ -142,7 +142,7 @@ print.MBOExampleRun = function(x, ...) {
142142
catf("True points per dim. : %s", collapse(x$points.per.dim))
143143
print(x$control)
144144
catf("Learner : %s", x$learner$id)
145-
catf("Learner settings:\n%s", mlr:::getHyperParsString(x$learner))
145+
catf("Learner settings:\n%s", mlr:::getHyperParsString(x$learner, show.missing.values = FALSE))
146146
mr = x$mbo.res
147147
op = mr$opt.path
148148
catf("Recommended parameters:")

R/exampleRunMultiCrit.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ exampleRunMultiCrit= function(fun, design = NULL, learner, control, points.per.d
8585

8686
showInfo(show.info, "Performing MBO on function.")
8787
showInfo(show.info, "Initial design: %i. Sequential iterations: %i.", control$init.design.points, control$iters)
88-
showInfo(show.info, "Learner: %s. Settings:\n%s", learner$id, mlr:::getHyperParsString(learner))
88+
showInfo(show.info, "Learner: %s. Settings:\n%s", learner$id, mlr:::getHyperParsString(learner, show.missing.values = FALSE))
8989

9090
# run optimizer now
9191
res = mbo(fun, design, learner = learner, control = control, show.info = show.info)
@@ -145,7 +145,7 @@ print.MBOExampleRunMultiCrit = function(x, ...) {
145145
catf("Parameter types : %s", collapse(x$par.types))
146146
print(x$control)
147147
catf("Learner : %s", x$learner$id)
148-
catf("Learner settings:\n%s", mlr:::getHyperParsString(x$learner))
148+
catf("Learner settings:\n%s", mlr:::getHyperParsString(x$learner, show.missing.values = FALSE))
149149
catf("Hypervolume : %.4e", x$mbo.hypervolume)
150150
catf("NSGA2 Hypervolume (6000 FEs) : %.4e", x$nsga2.hypervolume)
151151
}

0 commit comments

Comments
 (0)