mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-05 16:02:13 +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
|
it = 0
|
||||||
update = np.inf
|
update = np.inf
|
||||||
while np.abs(update).sum() > 1e-10 and it < max_iterations:
|
while np.abs(update).sum() > 1e-10 and it < max_iterations:
|
||||||
try:
|
fy = self.f(y)
|
||||||
fy = self.f(y)
|
|
||||||
except ValueError:
|
|
||||||
sys.stderr.write("One of y's is negative! Stopping inverse calculation.\n")
|
|
||||||
break
|
|
||||||
fgrady = self.fgrad_y(y)
|
fgrady = self.fgrad_y(y)
|
||||||
update = (fy - z) / fgrady
|
update = (fy - z) / fgrady
|
||||||
y -= self.rate * update
|
y -= self.rate * update
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue