catch beta > 0 not needed anymore

This commit is contained in:
Max Zwiessele 2013-05-16 16:12:15 +01:00
parent 0092ad9403
commit 66b96cb3d3

View file

@ -51,12 +51,11 @@ class Gaussian(likelihood):
return ["noise_variance"]
def _set_params(self, x):
x = float(x)
if self._variance != x:
self._variance = x
self.precision = 1. / self._variance
self.covariance_matrix = np.eye(self.N) * self._variance
self.precision = 1. / x
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):
"""