Skip to content

Commit

Permalink
restore mean tracking in scan version
Browse files Browse the repository at this point in the history
  • Loading branch information
damonbayer committed Jun 18, 2024
1 parent 17821d1 commit 8ebbaa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/ar2.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def transition(carry, _):
with numpyro.handlers.condition(data={"y": y[2:]}):
_, mu = scan(transition, init, timesteps)

numpyro.deterministic("mu", mu)


def ar2_for_loop(y):
alpha_1 = numpyro.sample("alpha_1", dist.Normal(0, 1))
Expand Down

0 comments on commit 8ebbaa7

Please sign in to comment.