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

Implement util function to sample model parameters from population #212

Open
9 tasks
DavAug opened this issue May 15, 2021 · 0 comments
Open
9 tasks

Implement util function to sample model parameters from population #212

DavAug opened this issue May 15, 2021 · 0 comments

Comments

@DavAug
Copy link
Owner

DavAug commented May 15, 2021

  • Create a Utilities module
  • Move compute_pointwise_loglikelihood to Utilities module
  • Implement a function called sample_population
  • Takes posterior_samples in form a xarray.Dataset
  • Takes list of erlo.PopulationModel
  • Names of the modelled parameters
  • Returns a xarray.Dataset with samples from the population model of the same size as samples in the posterior_samples.
  • The individual coordinate is 'population'
  • For pooled and heterogeneous models the samples can just be copied.
@DavAug DavAug moved this from To do to In progress in Reproduce modelling results May 17, 2021
@DavAug DavAug self-assigned this May 17, 2021
@DavAug DavAug moved this from In progress to To do in Reproduce modelling results May 20, 2021
@DavAug DavAug removed their assignment May 20, 2021
@DavAug DavAug moved this from To do to In progress in Reproduce modelling results Feb 24, 2022
@DavAug DavAug moved this from In progress to Done in Reproduce modelling results Feb 24, 2022
@DavAug DavAug moved this from Done to In progress in Reproduce modelling results Feb 24, 2022
@DavAug DavAug moved this from In progress to To do in Reproduce modelling results Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant