0c8b83454f5ca772d2d87180ccbe891a295fcf8b,GPy/kern/coregionalise.py,coregionalise,dK_dtheta,#coregionalise#Any#Any#Any#Any#,56

Before Change


        //as above, but slightly faster
        dL_dK_small = np.zeros_like(self.B)
        where_i = [ii==i for i in xrange(self.Nout)]
        where_j = [jj==j for j in xrange(self.Nout)]
        [[np.put(dL_dK_small,i+self.Nout*j,np.sum(dL_dK[np.logical_and(wi,wj)])) for i,wi in enumerate(where_i)] for j,wj in enumerate(where_j)]

        dkappa = np.diag(dL_dK_small)
        dL_dK_small += dL_dK_small.T

After Change



        dL_dK_small = np.zeros_like(self.B)
        for i in range(self.Nout):
            for j in range(self.Nout):
                tmp = np.sum(dL_dK[(ii==i)*(jj==j)])
                dL_dK_small[i,j] = tmp

        dkappa = np.diag(dL_dK_small)
        dL_dK_small += dL_dK_small.T
        dW = (self.W[:,None,:]*dL_dK_small[:,:,None]).sum(0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: SheffieldML/GPy
Commit Name: 0c8b83454f5ca772d2d87180ccbe891a295fcf8b
Time: 2013-04-23
Author: ibinbei@gmail.com
File Name: GPy/kern/coregionalise.py
Class Name: coregionalise
Method Name: dK_dtheta


Project Name: has2k1/plotnine
Commit Name: d695f661f194ba222386ac4848ac259814de3e49
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_abline.py
Class Name: geom_abline
Method Name: _plot_unit


Project Name: bethgelab/foolbox
Commit Name: 80cfb0e5f889c65a972ebde6c6dae4278b5e28c1
Time: 2020-02-14
Author: git@jonasrauber.de
File Name: foolbox/attacks/base.py
Class Name: MinimizationAttack
Method Name: __call__