mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 04:52:37 +02:00
fixed transformations (Sorry Andreas)
This commit is contained in:
parent
0efde820bd
commit
f6ffbf88d9
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ class logexp_clipped(transformation):
|
||||||
return np.log(np.exp(f) - 1.)
|
return np.log(np.exp(f) - 1.)
|
||||||
def gradfactor(self, f):
|
def gradfactor(self, f):
|
||||||
ef = np.exp(f)
|
ef = np.exp(f)
|
||||||
|
gf = (ef - 1.) / ef
|
||||||
return np.where(f < 1e-6, 0, gf)
|
return np.where(f < 1e-6, 0, gf)
|
||||||
def initialize(self,f):
|
def initialize(self,f):
|
||||||
if np.any(f<0.):
|
if np.any(f<0.):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue