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

Refactor the JAX utilities for the multinomial model #18

Merged
merged 9 commits into from
Nov 14, 2024

Conversation

pawel-czyz
Copy link
Member

@pawel-czyz pawel-czyz commented Nov 13, 2024

Hi David,

I think it's the right moment to do some convenient refactoring changes, redesigning the API.

I propose to do the following:

  • Merge your PR with the delta method and pull the changes to this branch.
  • Rename this module to _quasimultinomial.py, as it'll better fit.
  • Remove the CityData object from the public API. I think this wrapper should be deprecated in favour of directly specifying the timepoints and observed proportions (as well as easier specification of quasimultinomial sample size n and the overdispersion factors).
  • Replace construct_total_loss, so that it's compatible with the new API.
  • Add construct_model, which returns a convenient to sample NumPyro model.

@pawel-czyz pawel-czyz added enhancement New feature or request refactor Changes refactoring the code labels Nov 13, 2024
@pawel-czyz pawel-czyz changed the title Refactor the JAX utilities for the multinomial model. Refactor the JAX utilities for the multinomial model Nov 14, 2024
@pawel-czyz pawel-czyz marked this pull request as ready for review November 14, 2024 14:14
@pawel-czyz pawel-czyz removed the enhancement New feature or request label Nov 14, 2024
Copy link
Collaborator

@dr-david dr-david left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great stuff ! another day another closure

@dr-david dr-david merged commit 8a46c5c into main Nov 14, 2024
1 check passed
@dr-david dr-david deleted the numpyro-quasilikelihood-model branch November 14, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Changes refactoring the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants