mlrMBO
mlrMBO copied to clipboard
MOIMBO with interleave.random.points causes error
ctrl = makeMBOControl(propose.points = 2L)
ctrl = setMBOControlTermination(ctrl, iters = 10L)
ctrl = setMBOControlInfill(ctrl, crit = makeMBOInfillCritEI(), interleave.random.points=1)
ctrl = setMBOControlMultiPoint(
ctrl,
method = "moimbo",
moimbo.objective = "ei.dist",
moimbo.dist = "nearest.neighbor",
moimbo.maxit = 200L
)
mbo(makeBraninFunction(), control = ctrl)
#> Computing y column(s) for design. Not provided.
#> [mbo] 0: x=4.34,8.31 : y = 52.6 : 0.0 secs : initdesign
#> [mbo] 0: x=0.327,12.7 : y = 70.9 : 0.0 secs : initdesign
#> [mbo] 0: x=7.78,0.782 : y = 11.1 : 0.0 secs : initdesign
#> [mbo] 0: x=1.94,7.19 : y = 20.9 : 0.0 secs : initdesign
#> [mbo] 0: x=5.85,4.23 : y = 28.4 : 0.0 secs : initdesign
#> [mbo] 0: x=-1.44,14.1 : y = 41.6 : 0.0 secs : initdesign
#> [mbo] 0: x=-4.07,2.08 : y = 161 : 0.0 secs : initdesign
#> [mbo] 0: x=9.92,10.1 : y = 52.8 : 0.0 secs : initdesign
#> Error in (function (..., deparse.level = 1) :
#> number of columns of matrices must match (see arg 2)
I believe This happens in joinProposedPoints(list(res, proposePointsRandom(opt.state)))
, where the randomly generated points and the MOIMBO generated points have a different format of "crit.vals".