Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function to check for constant model while focussearch #259

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
check.constant.model is always on
jakob-r committed Sep 28, 2016
commit e6a59096bb817da6642b3c34c2b8ec8d3aa7a5bf
2 changes: 1 addition & 1 deletion tests/testthat/test_mbo_km.R
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ test_that("mbo recognizes constant model prediction", {
des$y = mean(apply(des, 1, testf.fsphere.2d))
# make sure model does not break, and we get a failure model
learner = makeLearner("regr.km")
ctrl = makeMBOControl(check.constant.model = TRUE)
ctrl = makeMBOControl()
ctrl = setMBOControlTermination(ctrl, iters = 4L)
ctrl = setMBOControlInfill(ctrl, opt.focussearch.points = 100L)
or = mbo(testf.fsphere.2d, des, learner = learner, control = ctrl)