File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -630,8 +630,8 @@ def test_normal_scalar(self):
630
630
ppc0 = pm .sample_posterior_predictive (
631
631
10 * [model .initial_point ()], return_inferencedata = False
632
632
)
633
- # # deprecated argument is not introduced to fast version [2019/08/20:rpg]
634
- ppc = pm . sample_posterior_predictive ( trace , var_names = ["a" ], return_inferencedata = False )
633
+ assert "a" in ppc0
634
+ assert len ( ppc0 ["a" ][ 0 ]) == 10
635
635
# test empty ppc
636
636
ppc = pm .sample_posterior_predictive (trace , var_names = [], return_inferencedata = False )
637
637
assert len (ppc ) == 0
@@ -641,7 +641,10 @@ def test_normal_scalar(self):
641
641
assert ppc ["a" ].shape == (nchains , ndraws )
642
642
643
643
# test default case
644
- idata_ppc = pm .sample_posterior_predictive (trace , var_names = ["a" ])
644
+ random_state = self .get_random_state ()
645
+ idata_ppc = pm .sample_posterior_predictive (
646
+ trace , var_names = ["a" ], random_seed = random_state
647
+ )
645
648
ppc = idata_ppc .posterior_predictive
646
649
assert "a" in ppc
647
650
assert ppc ["a" ].shape == (nchains , ndraws )
You can’t perform that action at this time.
0 commit comments