Speedup of the acquisition function optimization #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I replaced the calls to scipy's minimize with tests of random points within the parameter space defined by pbounds. This results in speedups in most cases I have used it with. (I normally optimize 2-10 parameters)
The setting can be controlled with the test_random_points parameters. It's default is "False" (previous behaviour - using scipy's minimize). Setting it to an integer makes it test n random points instead.
The number of tested points depends on the number of parameters to optimize. I normally set it to 100k...
Example notebook:
https://github.com/stmax82/BayesianOptimization/blob/acq_opt/examples/acquisition%20function%20optimization.ipynb