Comments (7)
The error informs you that the initial design size should be larger than the number of parameters you are optimizing for. You could increase the size of the initial design by increasing the n
in generateDesign
to above 9.
(When I run your example with just that, I still get an error because apparently the model in the background (DiceKriging) can not handle constant values well.)
des <- generateDesign(n = 10, par.set = ps)
des$y <- 1:10
works for me.
from mlrmbo.
@mb706 yes DiceKriging is not able to handle constant values well.
so i think we need to file bug them to also ?
from mlrmbo.
I did that, but I don't know how responsive they will be. If you frequently get constant values from your use case then you should probably handle that case separately, but it would be an unusual usecase.
I am assuming we have fixed the specific problem here so I am closing this issue.
from mlrmbo.
thanks @mb706
and according to your given value it is working fine to me also.
from mlrmbo.
If you frequently get constant values from your use case then you should probably handle that case separately, but it would be an unusual usecase.
You can use the removeConstantFeaturesWrapper
from mlr on the regression learner that is used as a surrogate for such case. Be aware that this will prevent any exploration in the dimension/feature that is removed.
from mlrmbo.
@mb706
still i get below error when i am continues executing that code by changing value given by you.
<simpleError in validObject(model, complete = TRUE): invalid class “km” object: the number of experiments must be larger than the spatial dimension>
is there any way to we can set any dynamic value of n
and 1:10
?
des <- generateDesign(n = 10, par.set = ps)
des$y <- 1:10
from mlrmbo.
Unrelated to the error. Seeing the following lines
des <- generateDesign(n = 6, par.set = ps)
des$y <- 9999
It case it is part of your real code: You cannot just initialize the design with some random values for y
. This will totally break the MBO process. They have to be real outcomes of the objective you want to tune.
from mlrmbo.
Related Issues (20)
- invalid class “km” object: the number of experiments must be larger than the spatial dimension HOT 2
- pkgdown-site points to slack HOT 1
- human in the loop mbo fails if final.evals is != 0
- Undocumented ranges for settings
- Error in if (err < tol) break : missing value where TRUE/FALSE needed for 'classif.gausspr' HOT 6
- The 'configureMlr' can not work with the parallel computing HOT 4
- qLCB not implemented perfectly
- The solution to the died training-No return HOT 1
- Test failure on R-devel HOT 3
- MOIMBO with interleave.random.points causes error HOT 1
- Unable to install mlrMBO using install.packages dependencies=T. I am on IOS and using R v 1.4, someone else? HOT 4
- optimizing "multiple objective" functions with "constraints" HOT 3
- Error: unused arguments (forbidden = expression(x2 > x1)) HOT 1
- Final Answer from mlrMBO outside of the specified variable ranges (multi objective function) HOT 2
- Error: Error in as.data.frame.OptPathDF(opt.path, include.rest = FALSE) : No elements where selected (via 'dob' and 'eol')! HOT 8
- Error: Setting of final.method and final.evals for multi-objective optimization not supported at the moment.
- Possible lack of consistency in xgboost hyperparameters optimization?
- error with AEI again
- Multi-task hyperparameter tuning using bayesian optimization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlrmbo.