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

    Parameters
    ----------
    x : ndarray
        An array of values in the interval (0, 1)

    Returns
    -------
    y: ndarray
        An array of values such that sigmoid_numpy(y) ~=~ x
    """
    return np.log(x / (1. - x))
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/expr/nnet.py/inverse_sigmoid_numpy/original