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

parameter with strata suffixes #4370

Merged
merged 7 commits into from
Aug 7, 2024
Merged

Conversation

mwdchang
Copy link
Member

@mwdchang mwdchang commented Aug 6, 2024

Summary

Support for param_renaming_uses_strata_names parameter in MIRA stratify:

  • Change the request to include said paraemter
  • Change how we parse/collapse parameters in stratified models

Note there appears to be a problem in MIRA with stratify where it replicates template names, this can mess up the model because there may be multiple expressions applied to a single transition.

Testing

Stratify a model including parameters, eg. stratify SIR with ages=young,old applied to S and beta.
Verify that the new beta parameters have young/old suffixes instead of numbers

@mwdchang mwdchang requested review from a team and removed request for a team August 6, 2024 19:02
@mwdchang mwdchang marked this pull request as ready for review August 6, 2024 19:02
@mwdchang mwdchang requested review from a team and removed request for a team August 6, 2024 19:02
@mwdchang mwdchang marked this pull request as draft August 6, 2024 19:02
shawnyama
shawnyama previously approved these changes Aug 6, 2024
@mwdchang mwdchang marked this pull request as ready for review August 7, 2024 15:45
@mwdchang mwdchang merged commit 2a0bbc1 into main Aug 7, 2024
5 checks passed
@mwdchang mwdchang deleted the param_renaming_uses_strata_names branch August 7, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants