Exemplo n.º 1
0
def Sigmoid():
  r"""Returns a layer that computes the sigmoid function.

  .. math::
      f(x) = \frac{1}{1 + e^{-x}}
  """
  return Fn('Sigmoid', lambda x: math.expit(x))
Exemplo n.º 2
0
def Sigmoid():
    return Fn('Sigmoid', lambda x: math.expit(x))
Exemplo n.º 3
0
def Sigmoid(x):
    return math.expit(x)
Exemplo n.º 4
0
def Sigmoid(x, **unused_kwargs):
    return math.expit(x)