From f6ffbf88d9650a9e33cbf5bad269a473e5147036 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Fri, 10 May 2013 16:49:37 +0100 Subject: [PATCH] fixed transformations (Sorry Andreas) --- GPy/core/transformations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GPy/core/transformations.py b/GPy/core/transformations.py index 41d0eaf9..ff821851 100644 --- a/GPy/core/transformations.py +++ b/GPy/core/transformations.py @@ -48,6 +48,7 @@ class logexp_clipped(transformation): return np.log(np.exp(f) - 1.) def gradfactor(self, f): ef = np.exp(f) + gf = (ef - 1.) / ef return np.where(f < 1e-6, 0, gf) def initialize(self,f): if np.any(f<0.):