Skip to content

Conversation

@fritzo
Copy link
Member

@fritzo fritzo commented May 18, 2021

Addresses #2848

This adds four new methods that intend to replace Predictive(...) for autoguides:

  • .predict() draws a single sample
  • .predict_sample() draws a batch of samples
  • .predict_median() traces the model with median latents
  • .predict_quantile() traces the model with quantile latents

These methods differ from .__call__(), .median() and .quantiles() in that they additionally replay and trace the model against latent values, thereby giving access to deterministic nodes (which e.g. is important for reparametrization).

Tested

  • TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants