@@ -9,6 +9,8 @@ setwd(r_root)
9
9
10
10
source(" mlrMBO_utils.R" )
11
11
12
+ turbine_output <- Sys.getenv(" TURBINE_OUTPUT" )
13
+
12
14
# EQ/R based parallel map
13
15
parallelMap2 <- function (fun , ... ,
14
16
more.args = list (),
@@ -57,10 +59,11 @@ simple.obj.fun = function(x){}
57
59
58
60
main_function <- function (max.budget = 110 , max.iterations = 10 , design.size = 10 , propose.points = 10 ){
59
61
62
+ mlr.save.file <- paste0(turbine_output , " /mlr_run.RData" )
60
63
61
64
surr.rf = makeLearner(" regr.randomForest" , predict.type = " se" )
62
- ctrl = makeMBOControl(n.objectives = 1 , save.on.disk.at = c(1 ,2 ,3 ,4 ,5 ),
63
- propose.points = min(20 , propose.points ),
65
+ ctrl = makeMBOControl(n.objectives = 1 , save.on.disk.at = c(1 ,2 ,3 ,4 ,5 ), save.file.path = mlr.save.file ,
66
+ propose.points = min(20 , propose.points ),
64
67
impute.y.fun = function (x , y , opt.path , ... ) .Machine $ integer.max * 0.1 )
65
68
ctrl = setMBOControlInfill(ctrl , crit = makeMBOInfillCritCB(), interleave.random.points = max(0 ,propose.points - 20 ))
66
69
ctrl = setMBOControlMultiPoint(ctrl , method = " cb" )
0 commit comments