-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
optimize
to be more computationally efficient and add separa…
…te notebooks for `optimize` and `sample` (#529) * Create optimize_interface.ipynb * Update optimize_interface.ipynb * Optimize interface with multiple interventions * Update optimize_interface.ipynb * added SEIRHD model to notebook * Update optimize_interface.ipynb * Updating intervention builder to handle multiple interventions at the same time * Update optimize_interface.ipynb * Update interfaces.py * Update optimize_interface.ipynb * Notebook testing different solver options to provide more details to users * Notebook updates * Linting * Update optimize_interface.ipynb * Update optimize_interface.ipynb * Updated intervention_builder to handle multiple intervention param values * type annotation for empty dictionary * Adding smoke_test to optimize interface parameters * Update optimize_interface.ipynb * Added seed * Updated to use rk4 in optimization * Adding penalties to force the optimizer to find a solution within the bounds Avoids simulating the model if interventions are out of bounds * Linting * Update optimize_interface.ipynb * Update interfaces.ipynb * Adding `smoke_test` to `optimize` interface parameters * copying interfaces notebook from main to avoid merge conflicts * Updated ouu to use parallel when sampling Significantly improves speed * Linting * Update `RandomDisplacementBounds` * Lint * remove extra print statements * Update optimize_interface.ipynb * Removing `torch.squeeze()` from `sample` * Update sample_interface_solvers.ipynb
- Loading branch information
1 parent
3703778
commit 1fc62b0
Showing
7 changed files
with
1,671 additions
and
59 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