You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defsample(
self,
I0_prior=None,
**kwargs,
) ->tuple:
"""Samples infections given Rt Parameters ---------- obs : random_variables, optional A dictionary containing an observed `Rt` sequence passed to `sample_infections_rt()`. It can also contain `infections` and `I0`, both passed to `obs` in `numpyro.sample()`. constants : dict Possible dictionary of constants. Returns ------- InfectionsSample Named tuple with "infections". """I0=npro.sample(
name="I0",
fn=self.I0_dist,
obs=I0_prior,
The text was updated successfully, but these errors were encountered:
Goal
Following #53, we have decided to use named arguments and
**kwargs
forsample
functions in bothRandomVariable
andModel
.Required features
Specifications
metaclass.py
.latent
observed
model
deterministic
Also
Example:
https://github.com/CDCgov/multisignal-epi-inference/blob/80f6a513f6acc8167958b0d098f0b5b9b7457ce0/model/src/pyrenew/latent/infections.py#L74-L98
Instead:
The text was updated successfully, but these errors were encountered: