15b3563c3c7f700ee0bf23b0477527dfa5323cea,test/examples/test_kissgp_additive_regression.py,GPRegressionModel,__init__,#GPRegressionModel#Any#Any#Any#,41
Before Change
def __init__(self, train_x, train_y, likelihood):
super(GPRegressionModel, self).__init__(train_x, train_y, likelihood)
self.mean_module = ConstantMean(constant_bounds=(-1, 1))
self.base_covar_module = RBFKernel(log_lengthscale_bounds=(-3, 3))
self.covar_module = AdditiveGridInterpolationKernel(
self.base_covar_module, grid_size=100, grid_bounds=[(0, 1)], n_components=2
)
After Change
def __init__(self, train_x, train_y, likelihood):
super(GPRegressionModel, self).__init__(train_x, train_y, likelihood)
self.mean_module = ConstantMean(prior=SmoothedBoxPrior(-1, 1))
self.base_covar_module = RBFKernel(
log_lengthscale_prior=SmoothedBoxPrior(exp(-3), exp(3), sigma=0.1, log_transform=True)
)
self.covar_module = AdditiveGridInterpolationKernel(
self.base_covar_module, grid_size=100, grid_bounds=[(0, 1)], n_components=2
)
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 10
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_kissgp_additive_regression.py
Class Name: GPRegressionModel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_sgpr_regression.py
Class Name: GPRegressionModel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_kissgp_multiplicative_regression.py
Class Name: GPRegressionModel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_kissgp_white_noise_regression.py
Class Name: GPRegressionModel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_kissgp_kronecker_product_regression.py
Class Name: GPRegressionModel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_white_noise_regression.py
Class Name: ExactGPModel
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 15b3563c3c7f700ee0bf23b0477527dfa5323cea
Time: 2018-06-07
Author: balandat@fb.com
File Name: test/examples/test_kissgp_gp_regression.py
Class Name: GPRegressionModel
Method Name: __init__