c9b787a1fa1757e692db3f5eaff30a372b0c9332,gpytorch/kernels/lcm_kernel.py,LCMKernel,__init__,#LCMKernel#Any#Any#Any#Any#,14

Before Change


            raise ValueError("At least one base kernel must be provided.")
        super(LCMKernel, self).__init__()
        self.base_kernel_list = base_kernel_list
        self.lcm_size = len(base_kernel_list)
        self.covar_module_list = [None] * self.lcm_size
        for i in range(self.lcm_size):
            self.covar_module_list[i] = MultitaskKernel(self.base_kernel_list[i],
                                                        n_tasks=n_tasks, rank=1,
                                                        task_covar_prior=task_covar_prior)

    def forward_diag(self, x1, x2):
        
        Args:
        

After Change


        
        if len(base_kernels) < 1:
            raise ValueError("At least one base kernel must be provided.")
        for k in base_kernels:
            if not isinstance(k, Kernel):
                raise ValueError("base_kernels must only contain Kernel objects")
        super(LCMKernel, self).__init__()
        self.covar_module_list = ModuleList([
            MultitaskKernel(base_kernel, n_tasks=n_tasks, rank=rank, task_covar_prior=task_covar_prior)
            for base_kernel in base_kernels
        ])

    def forward_diag(self, x1, x2):
        
        Args:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: c9b787a1fa1757e692db3f5eaff30a372b0c9332
Time: 2018-09-18
Author: krajkumar@stanford.edu
File Name: gpytorch/kernels/lcm_kernel.py
Class Name: LCMKernel
Method Name: __init__


Project Name: biocore/scikit-bio
Commit Name: 606165054f1130f0df50a419e89939e6a3afdb01
Time: 2015-10-02
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast6.py
Class Name:
Method Name: _blast6_to_data_frame


Project Name: cornellius-gp/gpytorch
Commit Name: ad31d8e18208864bd2aa32ed2f555ae25decece1
Time: 2018-09-23
Author: krajkumar@stanford.edu
File Name: gpytorch/kernels/lcm_kernel.py
Class Name: LCMKernel
Method Name: __init__