Comments (4)
Hi @BSchuett-fzi,
I assume that your function is reasonably well conditioned and differentiable. If that's the case, 2000 iterations really should not happen.
One quick and easy thing to try: By default, this optimizer uses the Matern
kernel with an isotropic lengthscale setting. If your problem is not isotropic, I could see this causing issues. You can use
# instatiate the optimizer
...
# replace kernel
kernel = Matern(nu=2.5),
alpha=1e-6,
normalize_y=True,
n_restarts_optimizer=5,
length_scale=np.ones(4), # default = 1.0
random_state=optimizer.random_state
)
optimizer.set_gp_params(kernel=kernel)
# optimization loop
...
to replace it with an anisotropic one.
Let us know if this helps.
from bayesianoptimization.
Thanks for your hint.
I'm sorry to ask, but do I still use a GaussianProcessRegressor? I have this code now:
gp = GaussianProcessRegressor(kernel = Matern(nu=2.5),
alpha=1e-6,
normalize_y=True,
n_restarts_optimizer=5,
length_scale=np.ones(4), # default = 1.0
random_state=optimizer._random_state)
optimizer.set_gp_params(kernel=gp)
But the length_scale is not an existing argument. I use scikit-learn 1.3.2.
from bayesianoptimization.
Hi @BSchuett-fzi,
no worries. Yes, it still uses a gp. the .set_gp_params
function simply replaces some parts of the gp, in this case the kernel. The length scale is an argument of the kernel, not an argument of the gp (hence your code not working).
I hope this helps, please let us know otherwise :)
from bayesianoptimization.
Hi @BSchuett-fzi,
I will close this issue for now with the hope that the problem has been fixed. If it persits, feel free to reopen.
from bayesianoptimization.
Related Issues (20)
- pbounds step size HOT 2
- Manually provide observed samples as init points HOT 2
- Pass *args, *kwargs as non-optimized arguments to the cost function HOT 3
- Verbose=2 doesn't work in terminal or bash HOT 1
- 'str object has no attribute reproduce' HOT 5
- add supported python versions badge to readme HOT 1
- NotUniqueError encountered for constrained problems. HOT 4
- [Question] can I use ML model as a black_box function? HOT 2
- random_state not working as expected when using constraints HOT 4
- How to use specific init_points HOT 3
- Move `static` inside `docsrc` HOT 1
- Problem about ```allow_duplicate_points``` HOT 4
- `suggest` does not return the maximum of acquisition function HOT 7
- ```constraint``` and ```allow_duplicate_points``` can't be used at the same time. HOT 1
- Constrained optimization but constraint function is unknown HOT 4
- Visualization HOT 6
- Inclusion of other adquisition functions HOT 1
- Bug with the sequential domain reduction HOT 1
- How to vectorize the target function parameters? HOT 4
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 bayesianoptimization.