94ba2ce2cbad284c48d1a5f6040699675410d559,pymc3/distributions/continuous.py,ExGaussian,random,#ExGaussian#Any#Any#Any#,969
Before Change
def random(self, point=None, size=None, repeat=None):
mu, sigma, nu = draw_values([self.mu, self.sigma, self.nu],
point=point)
return generate_samples(lambda mu, sigma, nu, size=None: nr.normal(mu, sigma, size=size) +
nr.exponential(scale=nu, size=size),
mu, sigma, nu,
dist_shape=self.shape,
size=size)
def logp(self, value):
mu = self.mu
sigma = self.sigma
After Change
return (np.random.normal(mu, sigma, size=size)
+ np.random.exponential(scale=nu, size=size))
return generate_samples(_random, mu, sigma, nu,
dist_shape=self.shape,
size=size)
def logp(self, value):
mu = self.mu
sigma = self.sigma
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pymc-devs/pymc3
Commit Name: 94ba2ce2cbad284c48d1a5f6040699675410d559
Time: 2015-12-25
Author: superbobry@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: ExGaussian
Method Name: random
Project Name: pymc-devs/pymc3
Commit Name: 94ba2ce2cbad284c48d1a5f6040699675410d559
Time: 2015-12-25
Author: superbobry@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: Weibull
Method Name: random
Project Name: pymc-devs/pymc3
Commit Name: 43e66a071b103704bf33571076e793d6172ad681
Time: 2019-06-07
Author: luciano.paz.neuro@gmail.com
File Name: pymc3/distributions/continuous.py
Class Name: TruncatedNormal
Method Name: random