From 24e759199e5d51143af91f56b2aa8a046895ef9e Mon Sep 17 00:00:00 2001 From: James Hensman Date: Fri, 12 Jun 2015 16:58:29 +0100 Subject: [PATCH] sqrt pi term was missing in variational expectations --- GPy/likelihoods/likelihood.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/likelihoods/likelihood.py b/GPy/likelihoods/likelihood.py index 31f5dffd..73118569 100644 --- a/GPy/likelihoods/likelihood.py +++ b/GPy/likelihoods/likelihood.py @@ -267,7 +267,7 @@ class Likelihood(Parameterized): if self.size: dF_dtheta = self.dlogpdf_dtheta(X, Y[:,None]) # Ntheta x (orig size) x N_{quad_points} - dF_dtheta = np.dot(dF_dtheta, gh_w) + dF_dtheta = np.dot(dF_dtheta, gh_w)/np.sqrt(np.pi) dF_dtheta = dF_dtheta.reshape(self.size, shape[0], shape[1]) else: dF_dtheta = None # Not yet implemented