Skip to content

Commit

Permalink
Update pymc_experimental/inference/pathfinder.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Vieira <[email protected]>
  • Loading branch information
twiecki and ricardoV94 authored Sep 8, 2022
1 parent 6ee97c1 commit afc09ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc_experimental/inference/pathfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def logprob_fn(x):
w0 = random.multivariate_normal(rng_key, 2.0 + jnp.zeros(dim), jnp.eye(dim))
path = blackjax.vi.pathfinder.init(rng_key, logprob_fn, w0, return_path=True, ftol=ftol)

pathfinder = blackjax.kernels.pathfinder(rng_key, logprob_fn, ftol=1e-4)
pathfinder = blackjax.kernels.pathfinder(rng_key, logprob_fn, ftol=ftol)
state = pathfinder.init(w0)

def inference_loop(rng_key, kernel, initial_state, num_samples):
Expand Down

0 comments on commit afc09ea

Please sign in to comment.