mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
changed the way the Gaussian likelihood interfaces, to enable mixed_noise things
This commit is contained in:
parent
caf1dc2609
commit
9680a139d4
5 changed files with 23 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue