Skip to content

Commit

Permalink
correct opt.direction for 2d plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-r committed Aug 4, 2017
1 parent 49501c6 commit 45fe59e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions R/renderExampleRunPlotSingleCrit2d.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ renderExampleRunPlot2d = function(x, iter,
critfun = control$infill.crit$fun
se = (x$learner$predict.type == "se")

opt.direction = 1
if (infill.crit.id %in% c("ei")) {
opt.direction = -1
}
# we need to maximize expected improvement
opt.direction = getMBOInfillCritMultiplier(control$infill.crit)

opt.path = as.data.frame(mbo.res$opt.path)

idx.init = which(opt.path$dob == 0)
Expand Down

0 comments on commit 45fe59e

Please sign in to comment.