Skip to content

Commit

Permalink
Merge branch 'master' of github.com:JaxGaussianProcesses/GPJax
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspinder committed Jan 9, 2023
2 parents 1f46413 + 3a40bac commit 0bd609d
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 @@ -153,7 +153,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 0bd609d

Please sign in to comment.