73a5954fcf6bd3c48391306f93c98bb7dd48287f,GPflow/model.py,GPModel,predict_f_samples,#GPModel#Any#Any#,346

Before Change


        samples = []
        for i in range(self.num_latent):
            L = tf.cholesky(var[:,:,i])
            samples.append(mu[:,i:i+1] + tf.matmul(L, tf.random_normal(tf.pack([tf.shape(L)[0], num_samples]), dtype=tf.float64)))
        return tf.transpose(tf.pack(samples))

    @AutoFlow(tf.placeholder(tf.float64, [None, None]))

After Change


        for i in range(self.num_latent):
            L = tf.cholesky(var[:, :, i])
            shape = tf.pack([tf.shape(L)[0], num_samples])
            V = tf.random_normal(shape, dtype=tf.float64)
            samples.append(mu[:, i:i + 1] + tf.matmul(L, V))
        return tf.transpose(tf.pack(samples))

    @AutoFlow(tf.placeholder(tf.float64, [None, None]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: 73a5954fcf6bd3c48391306f93c98bb7dd48287f
Time: 2016-04-13
Author: james.hensman@gmail.com
File Name: GPflow/model.py
Class Name: GPModel
Method Name: predict_f_samples


Project Name: GPflow/GPflow
Commit Name: 6b8a9a5f0e738d98904ff7c46c79a44bfdd56686
Time: 2016-05-31
Author: alexggmatthews@googlemail.com
File Name: GPflow/model.py
Class Name: GPModel
Method Name: predict_f_samples


Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name: RandomNormal
Method Name: __call__