fixed transformations (Sorry Andreas)

This commit is contained in:
James Hensman 2013-05-10 16:49:37 +01:00
parent 0efde820bd
commit f6ffbf88d9

View file

@ -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.):