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

Provenance funsor #593

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Provenance funsor #593

wants to merge 11 commits into from

Conversation

ordabayevy
Copy link
Member

@ordabayevy ordabayevy commented Apr 11, 2022

Provenance tracking implementation in funsor. Here the provenance is the set of (name, point) tuples of RV samples that were in the history of the computations of the tracked term. Substitution results in the multiplication by the density:

>>> logp_x = Provenance(logp_value, {("x", point)})
>>> logp_x(x=point)
logp_value

The Provenance funsor is intended to be used in pyro-ppl/pyro#2893 as a wrapper for ProvenanceTensor.

@ordabayevy ordabayevy added enhancement New feature or request awaiting review labels Apr 12, 2022
@ordabayevy
Copy link
Member Author

Tests are failing due to the new jax version #594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant