6b8a9a5f0e738d98904ff7c46c79a44bfdd56686,GPflow/priors.py,Gaussian,__init__,#Gaussian#Any#Any#,22
Before Change
class Gaussian(Prior):
def __init__(self, mu, var):
Prior.__init__(self)
self.mu, self.var = np.atleast_1d(np.array(mu, np.float64)), np.atleast_1d(np.array(var, np.float64))
def logp(self, x):
return tf.reduce_sum(densities.gaussian(x, self.mu, self.var))
def __str__(self):
return "N("+str(self.mu) + "," + str(self.var) + ")"
After Change
def __init__(self, mu, var):
Prior.__init__(self)
self.mu = np.atleast_1d(np.array(mu, np.float64))
self.var = np.atleast_1d(np.array(var, np.float64))
def logp(self, x):
return tf.reduce_sum(densities.gaussian(x, self.mu, self.var))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: GPflow/GPflow
Commit Name: 6b8a9a5f0e738d98904ff7c46c79a44bfdd56686
Time: 2016-05-31
Author: alexggmatthews@googlemail.com
File Name: GPflow/priors.py
Class Name: Gaussian
Method Name: __init__
Project Name: GPflow/GPflow
Commit Name: e41f5f5b2422bc4c73817aeb3ae0967a4ab0ffc1
Time: 2016-04-13
Author: james.hensman@gmail.com
File Name: GPflow/priors.py
Class Name: Gamma
Method Name: __init__
Project Name: GPflow/GPflow
Commit Name: 6b8a9a5f0e738d98904ff7c46c79a44bfdd56686
Time: 2016-05-31
Author: alexggmatthews@googlemail.com
File Name: GPflow/priors.py
Class Name: Gamma
Method Name: __init__
Project Name: GPflow/GPflow
Commit Name: e41f5f5b2422bc4c73817aeb3ae0967a4ab0ffc1
Time: 2016-04-13
Author: james.hensman@gmail.com
File Name: GPflow/priors.py
Class Name: Gaussian
Method Name: __init__