698dc4fa906cb0d2a58e4f6e17d19962850dbe61,gpytorch/kernels/kernel.py,AdditiveKernel,forward,#AdditiveKernel#Any#Any#,71

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()


class ProductKernel(Kernel):
    def __init__(self, kernel_1, kernel_2):

After Change


        self.kernels = kernels

    def forward(self, x1, x2):
        res = ZeroLazyVariable()
        for kern in self.kernels:
            res = res + kern(x1, x2).evaluate_kernel()

        return res


class ProductKernel(Kernel):
    def __init__(self, *kernels):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

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: AdditiveKernel
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: AdditiveKernel
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: AdditiveKernel
Method Name: forward