@@ -27,6 +27,7 @@ test_that("OutputTrafoLogworks", {
2727})
2828
2929test_that(" OutputTrafoLog works with SurrogateLearner" , {
30+ skip_if_missing_regr_km()
3031 instance = MAKE_INST_1D()
3132 design = generate_design_random(instance $ search_space , n = 4L )$ data
3233 instance $ eval_batch(design )
@@ -48,6 +49,7 @@ test_that("OutputTrafoLog works with SurrogateLearner", {
4849})
4950
5051test_that(" OutputTrafoLog works with SurrogateLearnerCollection" , {
52+ skip_if_missing_regr_km()
5153 instance = MAKE_INST(OBJ_1D_2 , search_space = PS_1D , terminator = trm(" evals" , n_evals = 5L ))
5254 design = generate_design_random(instance $ search_space , n = 4L )$ data
5355 instance $ eval_batch(design )
@@ -69,6 +71,7 @@ test_that("OutputTrafoLog works with SurrogateLearnerCollection", {
6971})
7072
7173test_that(" OutputTrafoLog works with OptimizerMbo and bayesopt_ego" , {
74+ skip_if_missing_regr_km()
7275 instance = MAKE_INST_1D()
7376 surrogate = SurrogateLearner $ new(REGR_KM_DETERM )
7477 ot = OutputTrafoLog $ new()
@@ -83,6 +86,7 @@ test_that("OutputTrafoLog works with OptimizerMbo and bayesopt_ego", {
8386})
8487
8588test_that(" OutputTrafoLog works with OptimizerMbo and bayesopt_ego for maximization and EI on log scale" , {
89+ skip_if_missing_regr_km()
8690 instance = MAKE_INST(OBJ_1D_MAXIMIZE , search_space = PS_1D , terminator = trm(" evals" , n_evals = 5L ))
8791 surrogate = SurrogateLearner $ new(REGR_KM_DETERM )
8892 ot = OutputTrafoLog $ new(invert_posterior = FALSE )
@@ -97,6 +101,7 @@ test_that("OutputTrafoLog works with OptimizerMbo and bayesopt_ego for maximizat
97101})
98102
99103test_that(" OutputTrafoLog works with OptimizerMbo and bayesopt_parego" , {
104+ skip_if_missing_regr_km()
100105 instance = MAKE_INST(OBJ_1D_2 , search_space = PS_1D , terminator = trm(" evals" , n_evals = 5L ))
101106 surrogate = SurrogateLearner $ new(REGR_KM_DETERM )
102107 ot = OutputTrafoLog $ new()
@@ -112,6 +117,7 @@ test_that("OutputTrafoLog works with OptimizerMbo and bayesopt_parego", {
112117})
113118
114119test_that(" OutputTrafoLog works with OptimizerMbo and bayesopt_smsego" , {
120+ skip_if_missing_regr_km()
115121 instance = MAKE_INST(OBJ_1D_2 , search_space = PS_1D , terminator = trm(" evals" , n_evals = 5L ))
116122 surrogate = SurrogateLearnerCollection $ new(list (REGR_KM_DETERM , REGR_KM_DETERM $ clone(deep = TRUE )))
117123 ot = OutputTrafoLog $ new()
0 commit comments