(y, sigma=1e-10)
return cdf
Utility function for creating CDF from real number and sigma (uncertainty measure).

    :param y: array of real values
    :param sigma: uncertainty measure. The higher sigma, the more imprecise the prediction is, and vice versa.
    Default value for sigma is 1e-10 to produce step function if needed.
Utility function for creating CDF from real number and sigma (uncertainty measure).
Utility function for creating CDF from real number and sigma ( uncertainty measure ) .
def real_to_cdf(y, sigma=1e-10):
    """
    Utility function for creating CDF from real number and sigma (uncertainty measure).

    :param y: array of real values
    :param sigma: uncertainty measure. The higher sigma, the more imprecise the prediction is, and vice versa.
    Default value for sigma is 1e-10 to produce step function if needed.
    """
    cdf = np.zeros((y.shape[0], 600))
    for i in range(y.shape[0]):
        cdf[i] = norm.cdf(np.linspace(0, 599, 600), y[i], sigma)
    return cdf
def real_to_cdf ( y , sigma = 1e-10 ) : cdf = np . zeros ( ( y . shape [ 0 ] , 600 ) ) for i in range ( y . shape [ 0 ] ) : cdf [ i ] = norm . cdf ( np . linspace ( 0 , 599 , 600 ) , y [ i ] , sigma ) return cdf