Merge branch 'devel' into link_functions

This commit is contained in:
Ricardo 2013-06-04 16:24:13 +01:00
commit 2dfda94176
28 changed files with 436 additions and 477 deletions

View file

@ -51,11 +51,15 @@ class Gaussian(likelihood):
return ["noise_variance"]
def _set_params(self, x):
x = float(x)
x = np.float64(x)
if self._variance != x:
self.precision = 1. / x
if x == 0.:
self.precision = None
self.V = None
else:
self.precision = 1. / x
self.V = (self.precision) * self.Y
self.covariance_matrix = np.eye(self.N) * x
self.V = (self.precision) * self.Y
self._variance = x
def predictive_values(self, mu, var, full_cov):