mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
removed the check on f(y), it was only useful in logtanh
This commit is contained in:
parent
2d9bdfdbfb
commit
e17ee1078b
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue