From 60b5f071b4f0cb8279e81f9db70f3e0ca968e2ef Mon Sep 17 00:00:00 2001 From: James Hensman Date: Tue, 18 Aug 2015 17:11:54 +0100 Subject: [PATCH] sqrt(pi) term fix in Bernoulli --- GPy/likelihoods/bernoulli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GPy/likelihoods/bernoulli.py b/GPy/likelihoods/bernoulli.py index 3a7d32a5..167daee8 100644 --- a/GPy/likelihoods/bernoulli.py +++ b/GPy/likelihoods/bernoulli.py @@ -85,6 +85,7 @@ class Bernoulli(Likelihood): gh_x, gh_w = gh_points + gh_w = gh_w / np.sqrt(np.pi) shape = m.shape m,v,Y = m.flatten(), v.flatten(), Y.flatten() Ysign = np.where(Y==1,1,-1)