mlrMBO | Bayesian Optimization and Model-Based Optimization | Machine Learning library
kandi X-RAY | mlrMBO Summary
kandi X-RAY | mlrMBO Summary
mlrMBO is a highly configurable R toolbox for model-based / Bayesian optimization of black-box functions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mlrMBO
mlrMBO Key Features
mlrMBO Examples and Code Snippets
Community Discussions
Trending Discussions on mlrMBO
QUESTION
I am using the "mlrMBO" library in R (https://cran.r-project.org/web/packages/mlrMBO/index.html). I am trying to learn how to run an optimization algorithm on some arbitrary function that I defined:
...ANSWER
Answered 2021-Jul-15 at 08:52You need to add one setting and adjust another one:
QUESTION
I am working with the R programming language. I am learning how to use the "mlrMBO" library for the purpose of optimizing multi-objective functions (using Bayesian Methods).
- https://cran.r-project.org/web/packages/mlrMBO/index.html
- https://cran.r-project.org/web/packages/mlrMBO/mlrMBO.pdf
- https://cran.r-project.org/web/packages/mlrMBO/vignettes/mlrMBO.html
- https://github.com/mlr-org/mlrMBO
In my example, for the following constraints:
...ANSWER
Answered 2021-Jul-13 at 22:50It looks like you're passing two arguments of the same name to makeNumericParamSet()
, which only takes 1 argument of the name 'forbidden'. I checked ?makeNumericParamSet
in the R console, and saw that the function which takes 'par.set' and 'forbidden' as arguments is actually makeParamSet
, so I tried this:
QUESTION
I am trying to optimize an SVM for a classification task, which has worked for many other models I've tried this process on. Yet, when I used an SVM in my model based optimization function it returns an error: "Error in checkStuff(fun, design, learner, control) : Provided learner does not support factor parameters."
Attached is the relevant code. In my training task, all independent variables are numeric, the only factor is my outcome of interest.
...ANSWER
Answered 2020-Jul-25 at 04:29The problem is that your parameter set has a categorical parameter (kernel) and the surrogate model you're using (regr.km) doesn't support that. You could try for example a random forest as surrogate model instead.
QUESTION
I am trying to implement a Multi-layer Perceptron through the Keras package (and tensorflow) to run a fast MLP. I want to use Bayesian Optimization to train the algorithm's hyperparameters. I get an error message though, saying "ValueError: rate is neither scalar nor scalar tensor" and then it prints the random value for the dropout parameter from keras. I then also get an error from caret that "There were missing values in resampled performance measures." I can get the process to work for non caret/keras algorithms.
Here is my code applied to the iris dataset that should reproduce the error:
...ANSWER
Answered 2020-Jun-07 at 21:29This is merely a syntax problem
The following works for me:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mlrMBO
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page