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
HMC gives the expected results. SVI runs without errors, but gives bad results, because the ELBO is not computed correctly. The scan operator blocks all handlers except substitute and condition, including the replay effect handler used in ELBO.
A preliminary implementation can be seen here master...aleatory-science:numpyro:master, which uses a similar logic to the way substitute is implemented for scan, and reuses the substitute_stack to store the replay trace.
I could make a PR as it is, but note that scan_enum hasn't been correspondingly edited (if it needs to be), and I'm not sure if and how the implementation otherwise needs to changed, or tested. @fehiepsi do you want to review what's there now, or is there something else I can add first?
Activity
[-]Scan doesn[/-][+]Scan doesn't work with replay[/+]deoxyribose commentedon Nov 30, 2023
I could make a PR as it is, but note that
scan_enumhasn't been correspondingly edited (if it needs to be), and I'm not sure if and how the implementation otherwise needs to changed, or tested. @fehiepsi do you want to review what's there now, or is there something else I can add first?fehiepsi commentedon Dec 3, 2023
I think scan enum is quite complicated to support. It's better to only support scan for Trace_ELBO in your PR.
deoxyribose commentedon Dec 4, 2023
Cool, I've submitted it at #1693
fehiepsi commentedon Jan 24, 2024
Thanks @deoxyribose !