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

cosmetics

parent 565c9491
Pipeline #28960 passed with stages
in 10 minutes and 25 seconds
...@@ -51,6 +51,7 @@ class Tanh(object): ...@@ -51,6 +51,7 @@ class Tanh(object):
def hessian(self, x): def hessian(self, x):
return - 2. * tanh(x) * (1. - tanh(x)**2) return - 2. * tanh(x) * (1. - tanh(x)**2)
class PositiveTanh(object): class PositiveTanh(object):
def __call__(self, x): def __call__(self, x):
return 0.5 * tanh(x) + 0.5 return 0.5 * tanh(x) + 0.5
......
Supports Markdown
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