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

error with AEI again #521

Open
yhyates opened this issue Feb 24, 2023 · 0 comments
Open

error with AEI again #521

yhyates opened this issue Feb 24, 2023 · 0 comments

Comments

@yhyates
Copy link

yhyates commented Feb 24, 2023

When I run the following code

fn.mixed = makeSingleObjectiveFunction(
name = "Mixed 2D",
fn = function(x) x$num1^2 + log(abs(x$disc1)),
has.simple.signature = FALSE,
par.set = makeParamSet(
makeNumericParam("num1", lower = -5, upper = 5),
makeNumericParam("disc1", lower = -15, upper = 15)
))
surr.km = makeLearner("regr.km", predict.type = "se", control = list(trace = FALSE))
control = makeMBOControl(final.method = "best.predicted")
control = setMBOControlTermination(control, iters = 10)
control = setMBOControlInfill(control, crit = crit.aei)
set.seed(1)
res = exampleRun(fn.mixed, control = control, show.info = FALSE, points.per.dim = 200, noisy.evals = 1)
plotExampleRun(res, pause = FALSE, iters = c(1,2,5))

I get the error message again

Error in checkNames(X1 = X, X2 = newdata, X1.name = "the design", X2.name = "newdata") :
the design and newdata must have the same numbers of columns

The error message looks like this #409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant