Ejemplo n.º 1
0
 def test_random_state_np_random_RandomState(self):
     seed = 1
     rng = np.random.RandomState(seed)
     random_state = self.instantiate_random_state(random_state=rng)
     assert_true(
         np.all(
             (np.random.RandomState(seed).rand(10), random_state.rand(10))))
Ejemplo n.º 2
0
 def test_random_state_np_random_RandomState(self):
     seed = 1
     rng = np.random.RandomState(seed)
     random_state = self.instantiate_random_state(random_state=rng)
     assert_true(np.all((np.random.RandomState(seed).rand(10),
                         random_state.rand(10))))
Ejemplo n.º 3
0
 def test_random_state_int(self):
     seed = 1
     random_state = self.instantiate_random_state(random_state=seed)
     assert_true(np.all((np.random.RandomState(seed).rand(10),
                         random_state.rand(10))))
Ejemplo n.º 4
0
 def test_random_state_int(self):
     seed = 1
     random_state = self.instantiate_random_state(random_state=seed)
     assert_true(
         np.all(
             (np.random.RandomState(seed).rand(10), random_state.rand(10))))