a28284b9bd72fb5f180d489327e6e5571d9aa8d8,gpflow/models/gpr.py,GPR,log_likelihood,#GPR#,53

Before Change



        
        K = self.kernel(self.X)
        S = tf.eye(self.X.shape[0], dtype=self.X.dtype) * self.likelihood.variance
        L = tf.linalg.cholesky(K + S)
        m = self.mean_function(self.X)
        logpdf = multivariate_normal(self.Y, m, L)  // (R,) log-likelihoods for each independent dimension of Y

After Change


        k_diag = tf.linalg.diag_part(K)
        s_diag = tf.fill([num_data], self.likelihood.variance)
        ks = tf.linalg.set_diag(K, k_diag + s_diag)
        L = tf.linalg.cholesky(ks)
        m = self.mean_function(x)

        // [R,] log-likelihoods for each independent dimension of Y
        distr = tfp.distributions.MultivariateNormalTriL(loc=m, scale_tril=L)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: a28284b9bd72fb5f180d489327e6e5571d9aa8d8
Time: 2019-09-09
Author: art.art.v@gmail.com
File Name: gpflow/models/gpr.py
Class Name: GPR
Method Name: log_likelihood


Project Name: GPflow/GPflow
Commit Name: 1d3e25c3ad4835ee298675f557e4c78bc8501c74
Time: 2017-03-06
Author: james.hensman@gmail.com
File Name: GPflow/ekernels.py
Class Name: RBF
Method Name: eKxz


Project Name: cornellius-gp/gpytorch
Commit Name: 4712923043ccd23b746b6272fb9aa6f37b212dfa
Time: 2019-01-29
Author: jrg365@cornell.edu
File Name: gpytorch/kernels/inducing_point_kernel.py
Class Name: InducingPointKernel
Method Name: _inducing_inv_root


Project Name: GPflow/GPflow
Commit Name: 956ac38fd58a1ef65c18dffc06a22d2e628e3a16
Time: 2016-01-18
Author: james.hensman@gmail.com
File Name: testing/test_conditionals.py
Class Name: WhitenTestGaussian
Method Name: test_whiten