-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improving performance in hiv module (#830)
* "profiling for 1 month" * "transfer scale and shape calculation out od the loop" * "calculate scale and shape with linear model for all ages" * "uses linear model to calculate mean months between aids and death depending on age" * "modifies get_time_from_infection_to_aids to do vectorised calculations" * "modifies if statement in get_time_from_infection_to_aids to avoid tests failing but adds redundancy" * "removes redundant comments" * Update hiv.py * Update hiv.py * "updates formatting" * Update hiv.py * Update src/scripts/profiling/scale_run.py Co-authored-by: Matt Graham <[email protected]> * Update src/scripts/profiling/scale_run.py Co-authored-by: Matt Graham <[email protected]> * "restructures get_time_from_infection_to_aids into two seperate functions: 1) linear model parameter calculations, 2) sampling" * "changes transformation to list" * Avoid repeated dataframe access * Add comment explaining shape param special case * Resample only necessary subset + rename functions --------- Co-authored-by: Matt Graham <[email protected]>
- Loading branch information
1 parent
a5912b3
commit 3c011e7
Showing
1 changed file
with
83 additions
and
94 deletions.
There are no files selected for viewing
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