-
Notifications
You must be signed in to change notification settings - Fork 46
Add BONSAI-style greedy pruning for NChooseK constraints #747
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
Open
jduerholt
wants to merge
21
commits into
main
Choose a base branch
from
feature/bonsai
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2af5bcf
Add BONSAI-style greedy pruning for NChooseK constraints
jduerholt db844c8
Extend BONSAI pruning to handle NChooseK with linear constraints
jduerholt d528832
merge
jduerholt 457f192
Add standalone NChooseK greedy pruning module
jduerholt b82d962
current state
jduerholt 81e17b5
add comment
jduerholt 6426400
fix bug
jduerholt a2601b2
activate implementation
jduerholt 38ced1f
Refactor _nchoosek_pruning.py for clarity and beam/B&B forward-compat
jduerholt dedf1ef
fix dense af stuff
jduerholt 334a3fb
proper x pending
jduerholt 8906fa0
fix categorical/discrete features for pruning
jduerholt 1bc28a0
Add pinned_columns tests and TODO comments referencing Ax PR
jduerholt 3c5fb11
Pin Interpoint/Nonlinear/Product constraint features against QP drift
jduerholt a8c0497
Move LSR-BO/pruning incompatibility check to data model validator
jduerholt c692abb
Address PR #747 review comments
jduerholt a0df705
Use is_semicontinuous in get_{number_of_,}categorical_combinations
jduerholt abb9457
fix some bugs
jduerholt 5162d96
fix it
jduerholt ae03fe7
final polish
jduerholt 8e66417
simplify
jduerholt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a good idea to propagate it everywhere? Could we not have this via kwargs or so to not have to introduce this relax_allow_zero flag everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could consider (in another PR) having some kind of context manager that can handle this kind of thing? Similar to gpytorch settings. So I would imagine it could be used as
This would avoid passing it to all these functions. The functions can then access the value of
bofire.optimization_settings.relax_allow_zeroto determine whether to relax.