File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- import unittest
2
-
3
1
import numpy as np
4
2
from numpy .testing import assert_allclose , assert_array_less
5
3
4
+ from .helpers import SeededTest
6
5
from ..model import Model
7
6
from ..step_methods import Slice , Metropolis , NUTS
8
7
from ..distributions import Normal
12
11
from .test_examples import build_disaster_model
13
12
14
13
15
- class TestGelmanRubin (unittest . TestCase ):
14
+ class TestGelmanRubin (SeededTest ):
16
15
good_ratio = 1.1
17
16
18
17
def get_ptrace (self , n_samples ):
@@ -85,7 +84,7 @@ def test_right_shape_scalar_one(self):
85
84
self .test_right_shape_python_float (shape = 1 , test_shape = (1 ,))
86
85
87
86
88
- class TestDiagnostics (unittest . TestCase ):
87
+ class TestDiagnostics (SeededTest ):
89
88
90
89
def get_switchpoint (self , n_samples ):
91
90
model = build_disaster_model ()
You can’t perform that action at this time.
0 commit comments