f47e301e50018af3365e3717e3ab1d8e07d297b5,gpytorch/kernels/grid_kernel.py,GridKernel,__init__,#GridKernel#Any#Any#Any#,9
Before Change
def __init__(self, base_kernel_module, inducing_points, grid):
super(GridKernel, self).__init__()
self.base_kernel_module = base_kernel_module
if inducing_points.ndimension() != 2:
raise RuntimeError("Inducing points should be 2 dimensional")
self.register_buffer("inducing_points", inducing_points.unsqueeze(0))
self.register_buffer("grid", grid)
def train(self, mode=True):
After Change
class GridKernel(Kernel):
def __init__(self, base_kernel_module, inducing_points, grid, active_dims=None):
super(GridKernel, self).__init__(active_dims=active_dims)
self.base_kernel_module = base_kernel_module
if inducing_points.ndimension() != 2:
raise RuntimeError("Inducing points should be 2 dimensional")
self.register_buffer("inducing_points", inducing_points.unsqueeze(0))
self.register_buffer("grid", grid)
def train(self, mode=True):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: f47e301e50018af3365e3717e3ab1d8e07d297b5
Time: 2018-03-15
Author: darbour@fb.com
File Name: gpytorch/kernels/grid_kernel.py
Class Name: GridKernel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 9c526695805c9639896b31364958d0e77bdeba62
Time: 2018-11-14
Author: gardner.jake@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: d44475866914c19f23c0f8a833951f9989250334
Time: 2018-11-17
Author: balandat@fb.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: effb02b4aa65dc30bd59104437f4b08dee2d76e6
Time: 2018-03-15
Author: darbour@fb.com
File Name: gpytorch/kernels/grid_kernel.py
Class Name: GridKernel
Method Name: __init__