06a3f28bacb5c8e5cb106179a97bf07f29a28387,pymc3/distributions/continuous.py,Wald,__init__,#Wald#Any#Any#Any#Any#,354
Before Change
def __init__(self, mu=None, lam=None, phi=None, alpha=0., *args, **kwargs):
super(Wald, self).__init__(*args, **kwargs)
self.mu, self.lam, self.phi = self.get_mu_lam_phi(mu, lam, phi)
self.alpha = alpha
self.mean = self.mu + alpha
self.mode = self.mu * (tt.sqrt(1. + (1.5 * self.mu / self.lam)**2)
After Change
def __init__(self, mu=None, lam=None, phi=None, alpha=0., *args, **kwargs):
super(Wald, self).__init__(*args, **kwargs)
mu, lam, phi = self.get_mu_lam_phi(mu, lam, phi)
self.alpha = tt.as_tensor_variable(alpha)
self.mu = tt.as_tensor_variable(mu)
self.lam = tt.as_tensor_variable(lam)
self.phi = tt.as_tensor_variable(phi)
self.mean = self.mu + self.alpha
self.mode = self.mu * (tt.sqrt(1. + (1.5 * self.mu / self.lam)**2)
- 1.5 * self.mu / self.lam) + self.alpha
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 13
Instances
Project Name: pymc-devs/pymc3
Commit Name: 06a3f28bacb5c8e5cb106179a97bf07f29a28387
Time: 2017-01-21
Author: thomas.wiecki@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: Wald
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 06a3f28bacb5c8e5cb106179a97bf07f29a28387
Time: 2017-01-21
Author: thomas.wiecki@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: HalfNormal
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 06a3f28bacb5c8e5cb106179a97bf07f29a28387
Time: 2017-01-21
Author: thomas.wiecki@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: SkewNormal
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 06a3f28bacb5c8e5cb106179a97bf07f29a28387
Time: 2017-01-21
Author: thomas.wiecki@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: Wald
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 06a3f28bacb5c8e5cb106179a97bf07f29a28387
Time: 2017-01-21
Author: thomas.wiecki@gmail.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: __init__