def sigmoid_numpy(x):
    """
    NumPy implementation of the logistic sigmoid function.

    Parameters
    ----------
    x : ndarray
        Arguments to the logistic sigmoid function

    Returns
    -------
    y : ndarray
        The output of the logistic sigmoid function applied
        element-wise to x
    """
    assert not isinstance(x, theano.gof.Variable)
    return 1. / (1. + np.exp(-x))
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/expr/nnet.py/sigmoid_numpy/original