Esempio n. 1
0
 def test_constructor_without_arg(self):
     rnd1 = HierarchicalRandomState()
     rnd2 = HierarchicalRandomState()
     self.assertNotEqual(rnd1.get_seed(), rnd2.get_seed())
Esempio n. 2
0
 def test_constructor_with_seed(self):
     rnd1 = HierarchicalRandomState(2)
     rnd2 = HierarchicalRandomState(2)
     self.assertEqual(rnd1.get_seed(), rnd2.get_seed())
Esempio n. 3
0
 def setUp(self):
     self.rnd = HierarchicalRandomState(1)