Exemple #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))
Exemple #2
0
def Sigmoid():
    return Fn('Sigmoid', lambda x: math.expit(x))
Exemple #3
0
def Sigmoid(x):
    return math.expit(x)
Exemple #4
0
def Sigmoid(x, **unused_kwargs):
    return math.expit(x)