f1e3cfaed0d27d697cdcb8c461662561aa9a4bd4,GPy/likelihoods/likelihood_functions.py,probit,predictive_values,#probit#Any#Any#,49

Before Change


        var = var.flatten()
        mean = stats.norm.cdf(mu/np.sqrt(1+var))
        p_025 = np.zeros(mu.shape)
        p_975 = np.ones(mu.shape)
        return mean, np.nan*var, p_025, p_975 // TODO: better values here (mean is okay)

class Poisson(likelihood_function):
    

After Change


        var = var.flatten()
        mean = stats.norm.cdf(mu/np.sqrt(1+var))
        norm_025 = [stats.norm.ppf(.025,m,v) for m,v in zip(mu,var)]
        norm_975 = [stats.norm.ppf(.975,m,v) for m,v in zip(mu,var)]
        p_025 = stats.norm.cdf(norm_025/np.sqrt(1+var))
        p_975 = stats.norm.cdf(norm_975/np.sqrt(1+var))
        return mean, np.nan*var, p_025, p_975 // TODO: var

class Poisson(likelihood_function):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: SheffieldML/GPy
Commit Name: f1e3cfaed0d27d697cdcb8c461662561aa9a4bd4
Time: 2013-05-02
Author: acq11ra@sheffield.ac.uk
File Name: GPy/likelihoods/likelihood_functions.py
Class Name: probit
Method Name: predictive_values


Project Name: kengz/SLM-Lab
Commit Name: 319882b5679229124774e91d5c5762853d75f3ce
Time: 2018-01-06
Author: lgraesser@users.noreply.github.com
File Name: test/agent/net/test_nn.py
Class Name: TestNet
Method Name: test_output


Project Name: scikit-learn-contrib/DESlib
Commit Name: bba1901f835525551dde9ec1537d041abc88d293
Time: 2021-04-08
Author: rafaelmenelau@gmail.com
File Name: deslib/static/oracle.py
Class Name: Oracle
Method Name: predict


Project Name: pymc-devs/pymc3
Commit Name: 971db0748a9d5d07a6d6102c656b2c3b043e9231
Time: 2017-07-16
Author: ctm22396@gmail.com
File Name: pymc3/step_methods/hmc/base_hmc.py
Class Name: BaseHMC
Method Name: __init__