e41f5f5b2422bc4c73817aeb3ae0967a4ab0ffc1,GPflow/priors.py,Gamma,__init__,#Gamma#Any#Any#,31
Before Change
class Gamma(Prior):
def __init__(self, shape, scale):
Prior.__init__(self)
self.shape, self.scale = np.atleast_1d(np.array(shape, np.float64)), np.atleast_1d(np.array(scale, np.float64))
def logp(self, x):
return tf.reduce_sum(densities.gamma(self.shape, self.scale, x))
def __str__(self):
return "Ga("+str(self.shape) + "," + str(self.scale) + ")"
After Change
def __init__(self, shape, scale):
Prior.__init__(self)
self.shape = np.atleast_1d(np.array(shape, np.float64))
self.scale = np.atleast_1d(np.array(scale, np.float64))
def logp(self, x):
return tf.reduce_sum(densities.gamma(self.shape, self.scale, x))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
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: 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: Gaussian
Method Name: __init__