f881e65761acfc3ee3ef8eae6db13bf00db14faa,GPy/kern/product_orthogonal.py,product_orthogonal,K,#product_orthogonal#Any#Any#Any#,40

Before Change


    def K(self,X,X2,target):
        Compute the covariance matrix between X and X2.
        if X2 is None: X2 = X
        target1 = np.zeros((X.shape[0],X2.shape[0]))
        target2 = np.zeros((X.shape[0],X2.shape[0]))
        self.k1.K(X[:,:self.k1.D],X2[:,:self.k1.D],target1)
        self.k2.K(X[:,self.k1.D:],X2[:,self.k1.D:],target2)
        target += target1 * target2

After Change


    def K(self,X,X2,target):
        Compute the covariance matrix between X and X2.
        if X2 is None: X2 = X
        target1 = np.zeros_like(target)
        target2 = np.zeros_like(target)
        self.k1.K(X[:,:self.k1.D],X2[:,:self.k1.D],target1)
        self.k2.K(X[:,self.k1.D:],X2[:,self.k1.D:],target2)
        target += target1 * target2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: SheffieldML/GPy
Commit Name: f881e65761acfc3ee3ef8eae6db13bf00db14faa
Time: 2013-03-08
Author: james.hensman@gmail.com
File Name: GPy/kern/product_orthogonal.py
Class Name: product_orthogonal
Method Name: K


Project Name: SheffieldML/GPy
Commit Name: cc98c6f5073ddcc3ae0aa6afa59d72fb21b951fc
Time: 2012-11-30
Author: james.hensman@gmail.com
File Name: GPy/kern/kern.py
Class Name: kern
Method Name: dKdiag_dX


Project Name: geomstats/geomstats
Commit Name: ee1c4ff690007dd33c81c71e391ba2bc426ec091
Time: 2018-02-05
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: compose