20a3f495691b621165cc7fcce1bca917516edf9a,GPflow/ekernels.py,RBF,eKxz,#RBF#Any#Any#Any#,24

Before Change



        vec = tf.expand_dims(Xmu, 1) - tf.expand_dims(Z, 0)  // NxMxD
        scalemat = tf.expand_dims(tf.diag(lengthscales ** 2.0), 0) + Xcov  // NxDxD
        rsm = tf.tile(tf.expand_dims(scalemat, 1), (1, M, 1, 1))  // Reshaped scalemat
        smIvec = tf.matrix_solve(rsm, tf.expand_dims(vec, 3))[:, :, :, 0]  // NxMxD
        q = tf.reduce_sum(smIvec * vec, [2])  // NxM
        det = tf.matrix_determinant(
            tf.expand_dims(eye(D), 0) + tf.reshape(lengthscales ** -2.0, (1, 1, -1)) * Xcov

After Change


        D = tf.shape(Xmu)[1]
        lengthscales = self.lengthscales if self.ARD else tf.zeros((D,), dtype=float_type) + self.lengthscales

        vec = tf.expand_dims(Xmu, 2) - tf.expand_dims(tf.transpose(Z), 0)  // NxDxM
        scalemat = tf.expand_dims(tf.diag(lengthscales ** 2.0), 0) + Xcov  // NxDxD
        smIvec = tf.matrix_solve(scalemat, vec) // NxDxM
        q = tf.reduce_sum(smIvec * vec, [1]) // NxM

        det = tf.matrix_determinant(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GPflow/GPflow
Commit Name: 20a3f495691b621165cc7fcce1bca917516edf9a
Time: 2017-02-03
Author: mrksr@users.noreply.github.com
File Name: GPflow/ekernels.py
Class Name: RBF
Method Name: eKxz


Project Name: GPflow/GPflow
Commit Name: 20a3f495691b621165cc7fcce1bca917516edf9a
Time: 2017-02-03
Author: mrksr@users.noreply.github.com
File Name: GPflow/ekernels.py
Class Name: RBF
Method Name: eKzxKxz


Project Name: GPflow/GPflow
Commit Name: 20a3f495691b621165cc7fcce1bca917516edf9a
Time: 2017-02-03
Author: mrksr@users.noreply.github.com
File Name: GPflow/ekernels.py
Class Name: RBF
Method Name: exKxz