9a73eb555d9dc212b92946e838770247d416f8f3,test/examples/test_simple_gp_classification.py,GPClassificationModel,__init__,#GPClassificationModel#Any#,31

Before Change


        self.mean_module = ConstantMean(prior=SmoothedBoxPrior(-1e-5, 1e-5))
        self.covar_module = ScaleKernel(
            RBFKernel(log_lengthscale_prior=SmoothedBoxPrior(exp(-5), exp(6), sigma=0.1, log_transform=True)),
            log_outputscale_prior=SmoothedBoxPrior(exp(-5), exp(6), sigma=0.1, log_transform=True),
        )

    def forward(self, x):

After Change


        variational_strategy = VariationalStrategy(self, train_x, variational_distribution)
        super(GPClassificationModel, self).__init__(variational_strategy)
        self.mean_module = gpytorch.means.ConstantMean()
        self.covar_module = gpytorch.kernels.ScaleKernel(gpytorch.kernels.RBFKernel())

    def forward(self, x):
        mean_x = self.mean_module(x)
        covar_x = self.covar_module(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 9a73eb555d9dc212b92946e838770247d416f8f3
Time: 2018-10-28
Author: gardner.jake@gmail.com
File Name: test/examples/test_simple_gp_classification.py
Class Name: GPClassificationModel
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 0edbd6e408ef58126353912bf5782510eec3e8f8
Time: 2018-08-17
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_kronecker_product_classification.py
Class Name: GPClassificationModel
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 0edbd6e408ef58126353912bf5782510eec3e8f8
Time: 2018-08-17
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_variational_regression.py
Class Name: GPRegressionModel
Method Name: __init__