698dc4fa906cb0d2a58e4f6e17d19962850dbe61,gpytorch/kernels/kernel.py,ProductKernel,forward,#ProductKernel#Any#Any#,81

Before Change


        self.kernel_2 = kernel_2

    def forward(self, x1, x2):
        return self.kernel_1(x1, x2).evaluate_kernel() * self.kernel_2(x1, x2).evaluate_kernel()

After Change


        self.kernels = kernels

    def forward(self, x1, x2):
        return gpytorch.utils.prod([k(x1, x2).evaluate_kernel() for k in self.kernels])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 698dc4fa906cb0d2a58e4f6e17d19962850dbe61
Time: 2018-06-15
Author: gardner.jake@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: ProductKernel
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 020d3d6dfa1bbcc13f7f7f0a833f57bb2cc8ef9d
Time: 2018-07-03
Author: balandat@fb.com
File Name: gpytorch/kernels/kernel.py
Class Name: ProductKernel
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 040b9ac809d807e62a6236b2db0bf3f977df4e83
Time: 2018-06-15
Author: gardner.jake@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: ProductKernel
Method Name: forward