841ca66170ecb851d2f1db9df22277318135f12f,GPy/likelihoods/binomial.py,Binomial,d2logpdf_dlink2,#Binomial#,91

Before Change


        
        N = Y_metadata["trials"]
        np.testing.assert_array_equal(N.shape, y.shape)
        return -y/np.square(inv_link_f) - (N-y)/np.square(1.-inv_link_f)

    def d3logpdf_dlink3(self, inv_link_f, y, Y_metadata=None):
        

After Change


        t2 = np.zeros(y.shape)
        t1[y>0] = -y[y>0]/np.square(inv_link_f[y>0])
        t2[Ny>0] = -(Ny[Ny>0])/np.square(1.-inv_link_f[Ny>0])
        return t1+t2

    def d3logpdf_dlink3(self, inv_link_f, y, Y_metadata=None):
        
        Third order derivative log-likelihood function at y given inverse link of f w.r.t inverse link of f
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SheffieldML/GPy
Commit Name: 841ca66170ecb851d2f1db9df22277318135f12f
Time: 2017-08-10
Author: eero.siivola@aalto.fi
File Name: GPy/likelihoods/binomial.py
Class Name: Binomial
Method Name: d2logpdf_dlink2


Project Name: kundajelab/deeplift
Commit Name: 2d39f43b45c2df4dd4240d4d196b8f5bda1ec65e
Time: 2020-11-10
Author: avanti.shrikumar@gmail.com
File Name: deeplift/layers/activations.py
Class Name: Tanh
Method Name: _get_gradient_at_activation


Project Name: SheffieldML/GPy
Commit Name: 841ca66170ecb851d2f1db9df22277318135f12f
Time: 2017-08-10
Author: eero.siivola@aalto.fi
File Name: GPy/likelihoods/binomial.py
Class Name: Binomial
Method Name: d3logpdf_dlink3