596db1ad5f2c72ba0c7207f63bce2b2b29c36bbe,pymc3/tests/test_sampling.py,TestSamplePPC,test_normal_vector,#TestSamplePPC#Any#,279
Before Change
ppc = pm.sample_posterior_predictive(
trace, samples=10, keep_size=True
)
msg = caplog.records[-1].message
assert "keep_size" in msg
assert "Overriding samples" in msg
assert ppc["a"].shape == (trace.nchains, len(trace), 2)
After Change
// test keep_size parameter
ppc = pm.sample_posterior_predictive(trace, keep_size=True)
assert ppc["a"].shape == (trace.nchains, len(trace), 2)
with pytest.warns(UserWarning):
ppc = pm.sample_posterior_predictive(trace, samples=10, var_names=["a"])
assert "a" in ppc
assert ppc["a"].shape == (10, 2)
ppc = pm.sample_posterior_predictive(trace, samples=10, var_names=["a"], size=4)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pymc-devs/pymc3
Commit Name: 596db1ad5f2c72ba0c7207f63bce2b2b29c36bbe
Time: 2019-06-17
Author: oriol.abril.pla@gmail.com
File Name: pymc3/tests/test_sampling.py
Class Name: TestSamplePPC
Method Name: test_normal_vector
Project Name: pymc-devs/pymc3
Commit Name: 3f611fbecf8abe08ea6e9f0a5cc3cb2a74e52659
Time: 2019-06-17
Author: oriol.abril.pla@gmail.com
File Name: pymc3/tests/test_sampling.py
Class Name: TestSamplePPC
Method Name: test_normal_scalar
Project Name: tgsmith61591/pmdarima
Commit Name: 1ead4fe94cc00561467641317befbc26a594933a
Time: 2020-07-13
Author: tgsmith61591@gmail.com
File Name: pmdarima/arima/tests/test_arima.py
Class Name:
Method Name: test_force_polynomial_error