ImpactModel#
|
Impact modeling interface: fit, sample, predict, and estimate effects. |
Attributes#
The underlying NumPyro inference object. |
|
A probabilistic model with NumPyro primitives. |
|
The cached |
|
Parameter name in |
|
Parameter name in |
|
Posterior samples by variable name, or |
|
Pseudo-random number generator key. |
|
Temporary directory path, or |
|
Variational inference result, or |
Inference#
|
Run a single VI step on the given batch of data. |
|
Fit the impact model to the provided batch of data. |
|
Fit the impact model to the provided data using epoch-based training. |
Set posterior samples for the model. |
|
Check fitted status. |
|
|
Predict the output based on the fitted model. |
|
Predict the output based on the fitted model. |
|
Compute the log-likelihood of the data under the given model. |
Explicit Sampling#
Draw samples from the prior predictive distribution. |
|
|
Draw samples from the prior predictive distribution. |
|
Draw posterior samples from a fitted model. |
Draw samples from the posterior predictive distribution. |
|
Draw samples from the posterior predictive distribution. |
Miscellaneous#
|
Estimate the effect of an intervention. |
Clean up the temporary directory created for storing outputs. |
|
Clean up temporary directories for all |