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

Enable cardinality constraint in botorch recommender #285

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Waschenbacher
Copy link
Collaborator

@Waschenbacher Waschenbacher commented Jun 26, 2024

This PR enables that cardinality constraints are supported in botorch recommender. It is on the top of #270

  • ContinuousCardinalityConstraint has a to_botorch method implemented. The continuous cardinality constraints are relaxed to nonlinear inequality constraints, which is supported by botorch's optimize_acqf.
  • The main idea of the relaxation: we use a narrow gaussian to check whether a value is zero or not.

@@ -21,8 +21,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
_ `_optional` subpackage for managing optional dependencies
- Acquisition function for active learning: `qNIPV`
- Abstract `ContinuousNonlinearConstraint` class
- `ContinuousCardinalityConstraint` class and corresponding uniform sampling mechanism
- Abstract `CardinalityConstraint` class and
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Waschenbacher it seems like this PR is based on top of #270 , right? So please ping me here once that is merged and this is in general ready for review

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good guess. I have updated the explanation above. Thanks, will ping you and looking forward to your review 👍

@Waschenbacher Waschenbacher force-pushed the feature/cardinality_constraint_to_botorch branch 2 times, most recently from 2145eec to ba4dfff Compare June 27, 2024 08:46
@Scienfitz Scienfitz added the new feature New functionality label Jun 27, 2024
@Waschenbacher
Copy link
Collaborator Author

Hi @AVHopp @AdrianSosic @Scienfitz, according to the CI failure I have to fix sth in this PR, so please hold off on the review. I will let you know when it is ready.

@Waschenbacher Waschenbacher force-pushed the feature/cardinality_constraint_to_botorch branch from ba4dfff to f6dca70 Compare June 27, 2024 20:12
@Waschenbacher Waschenbacher added the on hold PR progress is awaiting for something else to continue label Jun 28, 2024
@Waschenbacher
Copy link
Collaborator Author

Hi @AVHopp @Scienfitz , this PR is currently on hold. I had a call with @AdrianSosic and we would need some time to fix. Will let you know when it is ready for review.

@AVHopp
Copy link
Collaborator

AVHopp commented Jul 2, 2024

@Waschenbacher @AdrianSosic would you be fine with turning this into a draft PR until it is ready for review?

@Waschenbacher Waschenbacher marked this pull request as draft July 2, 2024 06:48
@Scienfitz Scienfitz removed the on hold PR progress is awaiting for something else to continue label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants