Skip to content

Commit

Permalink
Update variational_inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dodd committed Jan 8, 2023
1 parent 3bbc8cb commit 42cae0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpjax/variational_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def q_moments(x):
log_prob = vmap(lambda f, y: link_function(params["likelihood"], f).log_prob(y))

# ≈ ∫[log(p(y|f(x))) q(f(x))] df(x)
expectation = gauss_hermite_quadrature(log_prob, mean, variance, y=y)
expectation = gauss_hermite_quadrature(log_prob, mean, jnp.sqrt(variance), y=y)

return expectation

Expand Down

0 comments on commit 42cae0a

Please sign in to comment.