mxnet.npx.sigmoid

sigmoid(data=None, out=None, name=None, **kwargs)

Computes sigmoid of x element-wise.

\[y = 1 / (1 + exp(-x))\]

Defined in /work/mxnet/src/operator/numpy/np_elemwise_unary_op_basic.cc:L49

Parameters
  • data (ndarray) – The input array.

  • out (ndarray, optional) – The output ndarray to hold the result.

Returns

out – The output of this function.

Return type

ndarray or list of ndarrays