Skip to content

Commit

Permalink
Merge pull request #179 from JaxGaussianProcesses/variational_expecta…
Browse files Browse the repository at this point in the history
…ion_quadrature_bug

Update variational_inference.py
  • Loading branch information
thomaspinder authored Jan 9, 2023
2 parents c0809b4 + 42cae0a commit 3a40bac
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 3a40bac

Please sign in to comment.