b996639740adde1bf4b39b278e83c4c295ad65ca,grakel/kernels/random_walk.py,RandomWalk,pairwise_operation,#RandomWalk#Any#Any#,200

Before Change


                S = np.diagflat(S)
            else:
                if self.kernel_type == "geometric":
                    S = np.diagflat(1/(1-self.lamda*Dij))
                elif self.kernel_type == "exponential":
                    S = np.diagflat(np.exp(self.lamda*Dij))

            return ff.dot(S).dot(ff.T)

After Change


            // Conjugate Gradient Method as presented in
            // [Vishwanathan et al., 2006] p.12, s.4.2
            Ax, Ay = X, Y
            xs, ys = Ax.shape[0], Ay.shape[0]
            mn = xs*ys

            def lsf(x, lamda):
                xm = x.reshape((xs, ys), order="F")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ysig/GraKeL
Commit Name: b996639740adde1bf4b39b278e83c4c295ad65ca
Time: 2018-09-24
Author: y.siglidis@gmail.com
File Name: grakel/kernels/random_walk.py
Class Name: RandomWalk
Method Name: pairwise_operation


Project Name: KrishnaswamyLab/PHATE
Commit Name: 4bd8d42a46e311a263a0c0acc018bed6cc3a629b
Time: 2018-04-02
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: von_neumann_entropy


Project Name: geomstats/geomstats
Commit Name: 5c2ae503e85bfac2346ea7a562c476c943bb3ec9
Time: 2018-02-03
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: closest_rotation_matrix