Commit 4172a4cd authored by Martin Reinecke's avatar Martin Reinecke

cosmetics

parent 565c9491
Pipeline #28960 passed with stages
in 10 minutes and 25 seconds
......@@ -51,6 +51,7 @@ class Tanh(object):
def hessian(self, x):
return - 2. * tanh(x) * (1. - tanh(x)**2)
class PositiveTanh(object):
def __call__(self, x):
return 0.5 * tanh(x) + 0.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment