From d7eff18180f5f1ef0a21f3d6d7cfca1730852ca1 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Tue, 18 Mar 2014 18:01:20 +0000 Subject: [PATCH] gaussian with identity link in tests --- GPy/testing/likelihood_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/testing/likelihood_tests.py b/GPy/testing/likelihood_tests.py index a0c113fe..5f036e8f 100644 --- a/GPy/testing/likelihood_tests.py +++ b/GPy/testing/likelihood_tests.py @@ -589,7 +589,8 @@ class LaplaceTests(unittest.TestCase): self.var = np.random.rand(1) self.stu_t = GPy.likelihoods.StudentT(deg_free=5, sigma2=self.var) - self.gauss = GPy.likelihoods.Gaussian(gp_link=link_functions.Log(), variance=self.var) + #TODO: gaussians with on Identity link. self.gauss = GPy.likelihoods.Gaussian(gp_link=link_functions.Log(), variance=self.var) + self.gauss = GPy.likelihoods.Gaussian(variance=self.var) #Make a bigger step as lower bound can be quite curved self.step = 1e-6 @@ -613,7 +614,6 @@ class LaplaceTests(unittest.TestCase): noise = np.random.randn(*self.X.shape)*self.real_std self.Y = np.sin(self.X*2*np.pi) + noise self.f = np.random.rand(self.N, 1) - self.gauss = GPy.likelihoods.Gaussian(variance=self.var) dlogpdf_df = functools.partial(self.gauss.dlogpdf_df, y=self.Y) d2logpdf_df2 = functools.partial(self.gauss.d2logpdf_df2, y=self.Y)