d2abb62f80aa0665b78ef467a43f1fef79129b53,pymc3/tests/test_distributions.py,,test_gamma,#,307
Before Change
Gamma, Rplus, {"alpha": Rplusbig, "beta": Rplusbig},
lambda value, alpha, beta: sp.gamma.logpdf(value, alpha, scale=1.0/beta)
)
pymc3_matches_scipy(
Gamma, Rplus, {"mu": Rplusbig, "sd": Rplusbig},
lambda value, mu, sd: sp.gamma.logpdf(value, mu**2 / sd**2, scale=1.0/(mu / sd**2))
)
def test_inverse_gamma():
pymc3_matches_scipy(
InverseGamma, Rplus, {"alpha": Rplus, "beta": Rplus},
After Change
def test_fun(value, mu, sd):
return sp.gamma.logpdf(value, mu**2 / sd**2, scale=1.0 / (mu / sd**2))
pymc3_matches_scipy(Gamma, Rplus, {"mu": Rplusbig, "sd": Rplusbig}, test_fun)
def test_inverse_gamma():
pymc3_matches_scipy(InverseGamma, Rplus, {"alpha": Rplus, "beta": Rplus},
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: pymc-devs/pymc3
Commit Name: d2abb62f80aa0665b78ef467a43f1fef79129b53
Time: 2016-09-06
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/tests/test_distributions.py
Class Name:
Method Name: test_gamma
Project Name: pymc-devs/pymc3
Commit Name: d2abb62f80aa0665b78ef467a43f1fef79129b53
Time: 2016-09-06
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/tests/test_distributions.py
Class Name:
Method Name: test_negative_binomial
Project Name: pymc-devs/pymc3
Commit Name: f6006d23955e227ed0a6c80a52106ce60bc0b673
Time: 2016-03-09
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/tests/test_distributions.py
Class Name:
Method Name: test_beta
Project Name: pymc-devs/pymc3
Commit Name: 19b294ca85bd69705eadcfc5eb11717b25c6d672
Time: 2016-03-09
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/tests/test_distributions.py
Class Name:
Method Name: test_beta