changed the way the Gaussian likelihood interfaces, to enable mixed_noise things

This commit is contained in:
James Hensman 2014-03-18 12:28:46 +00:00
parent caf1dc2609
commit 9680a139d4
5 changed files with 23 additions and 28 deletions

View file

@ -50,8 +50,8 @@ class Gaussian(Likelihood):
if isinstance(gp_link, link_functions.Identity):
self.log_concave = True
def covariance_matrix(self, Y, Y_metadata=None):
return np.eye(Y.shape[0]) * self.variance
def gaussian_variance(self, Y, Y_metadata=None):
return self.variance
def update_gradients(self, grad):
self.variance.gradient = grad