From e17ee1078bf0b08f159164ee8461a1c4ffdb1e25 Mon Sep 17 00:00:00 2001 From: beckdaniel Date: Thu, 7 Apr 2016 18:44:55 +0100 Subject: [PATCH] removed the check on f(y), it was only useful in logtanh --- GPy/util/warping_functions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/GPy/util/warping_functions.py b/GPy/util/warping_functions.py index 7bc0050f..6b8b73e9 100644 --- a/GPy/util/warping_functions.py +++ b/GPy/util/warping_functions.py @@ -46,11 +46,7 @@ class WarpingFunction(Parameterized): it = 0 update = np.inf while np.abs(update).sum() > 1e-10 and it < max_iterations: - try: - fy = self.f(y) - except ValueError: - sys.stderr.write("One of y's is negative! Stopping inverse calculation.\n") - break + fy = self.f(y) fgrady = self.fgrad_y(y) update = (fy - z) / fgrady y -= self.rate * update