-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Bug: small batch size with categorical variables #454
Comments
Hi, Why do you generate the design with Your initial design has to contain each discrete value at least once so that the surrogate can make predictions. For me it works with |
@jakob-r Thanks! surr.rf = makeLearner("regr.randomForest", res = mbo(obj.fun, design = design, learner = surr.rf, control = ctrl, show.info = TRUE) Complete isolated example is here |
True, my answer is kind of restricted to the surrogate. However, I have doubts that the surrogate will work so well, especially the uncertainty estimation for unknown factors. I am curious to see results of any optimization benchmark using this approach 🙂 |
Even if I increase the propose.points to 1000, I get the error: for this example: https://github.com/rajeeja/mlrmbo-bug/blob/master/learner-discrete-param-bug.R What should be a fix for getting something like this to work? |
changing surr.rf = makeLearner("regr.randomForest",
predict.type = "se",
fix.factors.prediction = TRUE,
se.method = "bootstrap",
se.boot = 8) to surr.rf = makeLearner("regr.randomForest",
predict.type = "se",
fix.factors.prediction = TRUE,
) it works. I'll update you about results from this approach. Also older version works even with se-> |
just found that changing the se.method = "bootstrap", to se.method = "jackknife", works. |
The link below is a standalone script for replicating the error to file the bug fix with mlrMBO
https://github.com/rajeeja/mlrmbo-bug/blob/master/mlrMBOMixedIntegerTest11a.R
Please let me know if you need more details.
The text was updated successfully, but these errors were encountered: