From 66b96cb3d354a9045ebd458b0779303d352b77ba Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Thu, 16 May 2013 16:12:15 +0100 Subject: [PATCH] catch beta > 0 not needed anymore --- GPy/likelihoods/Gaussian.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GPy/likelihoods/Gaussian.py b/GPy/likelihoods/Gaussian.py index 39b59464..17696939 100644 --- a/GPy/likelihoods/Gaussian.py +++ b/GPy/likelihoods/Gaussian.py @@ -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): """