bea74ac5231e47cce34170273771fd61a39e6b73,GPy/likelihoods/mixed_noise.py,MixedNoise,covariance_matrix,#MixedNoise#Any#Any#,53

Before Change


        assert all([isinstance(l, Gaussian) for l in self.likelihoods_list])
        ind = Y_metadata["output_index"].flatten()
        variance = np.zeros(Y.shape[0])
        for lik, j in zip(self.likelihoods_list, range(len(self.likelihoods_list))):
            variance[ind==j] = lik.variance
        return np.diag(variance)


    def samples(self, gp, Y_metadata):

After Change


        //for lik, j in zip(self.likelihoods_list, range(len(self.likelihoods_list))):
        //    variance[ind==j] = lik.variance
        //return np.diag(variance)
        return np.diag(self.gaussian_variance(Y_metadata).flatten())


    def samples(self, gp, Y_metadata):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: SheffieldML/GPy
Commit Name: bea74ac5231e47cce34170273771fd61a39e6b73
Time: 2014-03-17
Author: acq11ra@sheffield.ac.uk
File Name: GPy/likelihoods/mixed_noise.py
Class Name: MixedNoise
Method Name: covariance_matrix


Project Name: cornellius-gp/gpytorch
Commit Name: d278768807dff0c1920795073a219577571959d7
Time: 2020-06-26
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: inv_quad


Project Name: cornellius-gp/gpytorch
Commit Name: 348122d499073a7a58b21d6e5544bc4b47a9ee94
Time: 2020-06-26
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: inv_quad