e503f50cb38fb1864fb6d66ba927b0852159428d,gpytorch/lazy/kronecker_product_lazy_variable.py,KroneckerProductLazyVariable,evaluate,#KroneckerProductLazyVariable#,135

Before Change


        

        if self.J_rights is not None:
            res = self.matmul(Variable(torch.eye(self._size[1])))
        else:
            res = self.matmul(Variable(torch.eye(self.kronecker_product_size)))
        return res

After Change


        

        if self.J_rights is not None:
            eye = Variable(self.columns.data.new(self._size[1]).fill_(1).diag())
        else:
            eye = Variable(self.columns.data.new(self.kronecker_product_size).fill_(1).diag())
        res = self.matmul(eye)
        return res

    def monte_carlo_log_likelihood(self, log_probability_func, train_y, variational_mean, chol_var_covar):
        epsilon = Variable(torch.randn(self.kronecker_product_size, gpytorch.functions.num_trace_samples))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: e503f50cb38fb1864fb6d66ba927b0852159428d
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/kronecker_product_lazy_variable.py
Class Name: KroneckerProductLazyVariable
Method Name: evaluate


Project Name: cornellius-gp/gpytorch
Commit Name: e503f50cb38fb1864fb6d66ba927b0852159428d
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/toeplitz_lazy_variable.py
Class Name: ToeplitzLazyVariable
Method Name: evaluate


Project Name: cornellius-gp/gpytorch
Commit Name: 71a99a3e0ccdb31f01a2a220380ab22d04cae107
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/__init__.py
Class Name:
Method Name: add_jitter