mlr-org / mlr3mbo

Flexible Bayesian Optimization in R
https://mlr3mbo.mlr-org.com
24 stars 1 forks source link

regr.km fails too easily, we need better defaults? #29

Closed berndbischl closed 3 years ago

berndbischl commented 3 years ago
obfun = ObjectiveRFun$new(
  fun = function(xs) sum(unlist(xs)^2),
  domain = ParamSet$new(list(ParamDbl$new("x", -5, 5))),
  id = "test"
)

terminator = trm("evals", n_evals = 20)

instance = OptimInstanceSingleCrit$new(
  objective = obfun,
  terminator = terminator
)

surrogate = SurrogateSingleCritLearner$new(learner = lrn("regr.km"))
acqfun = AcqFunctionEI$new(surrogate = surrogate)
acqopt = AcqOptimizerRandomSearch$new()

z = bayesop_soo(instance, acqfun, acqopt)

leads to

Error in chol.default(R) : the leading minor of order 11 is not positive definite

sumny commented 3 years ago

closed by #32