Skip to content
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

Plans for parallel optimization #278

Open
00sapo opened this issue May 22, 2021 · 4 comments
Open

Plans for parallel optimization #278

00sapo opened this issue May 22, 2021 · 4 comments

Comments

@00sapo
Copy link

00sapo commented May 22, 2021

Is there any plan for introducing parallel optimization?

For instance, scikit-optimize has an ask-tell interface that allows asking for the best N candidate points (according to the acquisition function) and then fitting the surrogate model with the new N points added.

Example here

What about creating similar ask and tell functions (or functors) one for each acquisition function with a single surrogate_optimize signature?

Actually, the tell is basically add_point! but should support Vector[T] as inputs, so we would just need to separate the ask method...

@ChrisRackauckas
Copy link
Member

Actually, the tell is basically add_point! but should support Vector[T] as inputs, so we would just need to separate the ask method...

Yes, it just needs a vector input, and then ask is just compatible with only a few samplers (like Sobol), and would need to get implemented.

@00sapo
Copy link
Author

00sapo commented May 23, 2021

Don't get why some acquisition functions wouldn't be compatible...

@ChrisRackauckas
Copy link
Member

Some samplers, like LatinHypercube, have to be batched all at once to guarantee some of their properties.

@00sapo
Copy link
Author

00sapo commented May 24, 2021

Ah ok! So we can create another abstract structure for parallelizable samplers and another function for parallel optimization.

If this is ok, I'll try to create a PR in a few weeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants