From 0ddf308d118a0b62ab1915dfca8c55b0027e9e2b Mon Sep 17 00:00:00 2001 From: James Hensman Date: Wed, 1 May 2013 11:11:23 +0100 Subject: [PATCH] fixed has_uncertain_inputs weirdness --- GPy/models/GP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/models/GP.py b/GPy/models/GP.py index ced8311b..27913c72 100644 --- a/GPy/models/GP.py +++ b/GPy/models/GP.py @@ -50,8 +50,8 @@ class GP(model): self._Xmean = np.zeros((1, self.X.shape[1])) self._Xstd = np.ones((1, self.X.shape[1])) - - self.has_uncertain_inputs = False + if not hasattr(self,'has_uncertain_inputs'): + self.has_uncertain_inputs = False model.__init__(self) def dL_dZ(self):