75b6ddc28f88a22c7508f3bdc6e929e8203c8922,GPflow/kernels.py,Add,Kdiag,#Add#Any#,232
Before Change
def K(self, X, X2=None):
return self.k1.K(X, X2) + self.k2.K(X, X2)
def Kdiag(self, X):
return self.k1.Kdiag(X) + self.k2.Kdiag(X)
class Prod(Kern):
After Change
return reduce(tf.add, [k.K(X, X2) for k in self.kern_list])
def Kdiag(self, X):
return reduce(tf.add, [k.Kdiag(X) for k in self.kern_list])
class Prod(Kern):
Multiply two kernels together.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: GPflow/GPflow
Commit Name: 75b6ddc28f88a22c7508f3bdc6e929e8203c8922
Time: 2016-02-25
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Add
Method Name: Kdiag
Project Name: GPflow/GPflow
Commit Name: decf9b577dc4e2f95de7641f7a731c8813639edf
Time: 2016-03-03
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Prod
Method Name: K
Project Name: GPflow/GPflow
Commit Name: decf9b577dc4e2f95de7641f7a731c8813639edf
Time: 2016-03-03
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Prod
Method Name: Kdiag
Project Name: GPflow/GPflow
Commit Name: 75b6ddc28f88a22c7508f3bdc6e929e8203c8922
Time: 2016-02-25
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Add
Method Name: K