dbb3361434fb06d61dcbbac36bd139bdedd076b8,test/examples/test_hadamard_multitask_gp_regression.py,HadamardMultitaskGPModel,__init__,#HadamardMultitaskGPModel#Any#Any#Any#,35

Before Change


class HadamardMultitaskGPModel(gpytorch.models.ExactGP):
    def __init__(self, train_x, train_y, likelihood):
        super(HadamardMultitaskGPModel, self).__init__(train_x, train_y, likelihood)
        self.mean_module = ConstantMean(prior=SmoothedBoxPrior(-1, 1))
        self.covar_module = RBFKernel(
            log_lengthscale_prior=SmoothedBoxPrior(exp(-6), exp(6), sigma=0.1, log_transform=True)
        )
        self.task_covar_module = IndexKernel(n_tasks=2, rank=1, prior=InverseWishartPrior(nu=2, K=torch.eye(2)))

After Change


        // Default bounds on mean are (-1e10, 1e10)
        self.mean_module = ConstantMean()
        // We use the very common RBF kernel
        self.covar_module = RBFKernel() + RBFKernel()
        // We learn an IndexKernel for 2 tasks
        // (so we"ll actually learn 2x2=4 tasks with correlations)
        self.task_covar_module = IndexKernel(n_tasks=2, rank=1, prior=InverseWishartPrior(nu=2, K=torch.eye(2)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: dbb3361434fb06d61dcbbac36bd139bdedd076b8
Time: 2018-09-23
Author: jrg365@cornell.edu
File Name: test/examples/test_hadamard_multitask_gp_regression.py
Class Name: HadamardMultitaskGPModel
Method Name: __init__


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: bb353808c6b2a95bab663d44b29b1a7626808466
Time: 2019-11-11
Author: jrg365@cornell.edu
File Name: test/examples/test_simple_gp_regression.py
Class Name: ExactGPModel
Method Name: __init__