c293152f47e85f08154197ed98a63602a792b275,GPflow/kernels.py,PeriodicKernel,Kdiag,#PeriodicKernel#Any#,260

Before Change


        self.period = Param(period, transforms.positive)

    def Kdiag(self, X):
        return tf.fill((tf.shape(X)[0],), self.variance)

    def K(self, X, X2=None):
        X, X2 = self._slice(X, X2)

After Change


        self.period = Param(period, transforms.positive)

    def Kdiag(self, X):
        return tf.fill(tf.pack([tf.shape(X)[0]]), self.variance)

    def K(self, X, X2=None):
        X, X2 = self._slice(X, X2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: GPflow/GPflow
Commit Name: c293152f47e85f08154197ed98a63602a792b275
Time: 2016-06-05
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: PeriodicKernel
Method Name: Kdiag


Project Name: GPflow/GPflow
Commit Name: c293152f47e85f08154197ed98a63602a792b275
Time: 2016-06-05
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Static
Method Name: Kdiag


Project Name: GPflow/GPflow
Commit Name: c293152f47e85f08154197ed98a63602a792b275
Time: 2016-06-05
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: White
Method Name: K


Project Name: GPflow/GPflow
Commit Name: c293152f47e85f08154197ed98a63602a792b275
Time: 2016-06-05
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Stationary
Method Name: Kdiag