def generate_logistic_dataset(size):
    X = np.sort(np.random.normal(size=size))
    return np.random.random(size=size) < 1.0 / (1.0 + np.exp(-X))
dataset/ETHPy150Open scikit-learn/scikit-learn/benchmarks/bench_isotonic.py/generate_logistic_dataset/original