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

Add a note that Trace_EnumELBO does not work with AutoContinuous #1796

Merged
merged 1 commit into from
May 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions numpyro/infer/elbo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,13 +1016,17 @@ class TraceEnum_ELBO(ELBO):
is constructed along the lines of reference [1] specialized to the case
of the ELBO. It supports arbitrary dependency structure for the model
and guide.

Fine-grained conditional dependency information as recorded in the
trace is used to reduce the variance of the gradient estimator.
In particular provenance tracking [2] is used to find the ``cost`` terms
that depend on each non-reparameterizable sample site.
Enumerated variables are eliminated using the TVE algorithm for plated
factor graphs [3].

.. note:: Currently, the objective does not support AutoContinous guides.
We recommend users to use AutoNormal guide as an alternative auto solution.

References

[1] `Storchastic: A Framework for General Stochastic Automatic Differentiation`,
Expand Down
Loading