-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to input complicated constraints in Bayesian Optimization that is not just lower and upper bound using Python? #189
Comments
Would anyone be interested if I tried to add additional sampling distributions other than a uniform? Or better yet maybe a way for user to define their own sampling function which for OP's case could work in defining custom constraints. |
It would be really great if self defined functions could be applied as constraints. I have been doing some reserach on Bayesian optimization packages but non of the packages that are still maintained offers such functionality. |
@julian-belina Ax (unaffiliated) supports a variety of constraints out of the box. BoTorch (backbone of Ax, I'm also unaffiliated) supports equality, inequality, and nonlinear constraints (the last one has the caveat of requiring gradients, which can get tricky). Ax is on its way to getting the plumbing in order to support nonlinear constraints soon (again, you have to supply gradients). |
Differentiable, nonlinear inequality constraints are now supported in Ax, though it can take some care to get these implemented since it requires applying some BoTorch transforms manually. See facebook/Ax#769 |
Hi, I'm wondering is the package only capable of dealing with the simple lower and upper bound constraint? What if I have more complicated constraint (it is to do with calling another self-defined function), how do I input constraints like that?
Thanks!
The text was updated successfully, but these errors were encountered: