-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating
optimize
to handle multiple risk constraints (#596)
* Updating optimize to handle multiple risk constraints * Lint * adding assertion errors to check lengths of inputs associated with constraints * Added support for List of `alpha` * Update fixtures.py * Update interfaces.py * Update type hint for qoi * forcing risk_bound, qoi, and alpha to be Lists with a warning * Update interfaces.py * preallocate risk_estimate in ouu code * fixing tests * Update ouu.py * checking shape of samples * Update interfaces.ipynb * Update interfaces.ipynb * Shape of samples changes based on intervention tensor size * Changing tensor shape * forcing tensors to be 1d * fixing input lists to intervention templates * Updated ouu to handle penalty for multiple constraints * Updating `sample` to fix tensor size issue * Update optimize_interface.ipynb * Adding tests for multiple constraints * Lint * Update qoi.py * Update interfaces.ipynb * Updating type hints * Lint * recreate failed runs for tensor size issues * Update ouu.py * Fixing tensor shape for sampling to always be 3D * Update optimize_interface.ipynb * Update interfaces.py * Update interfaces.py
- Loading branch information
1 parent
f5c5bec
commit 5401b75
Showing
9 changed files
with
692 additions
and
794 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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.