コード例 #1
0
 def test_seed(self):
     seed = 0
     h, t = 3, 4
     rho = -0.5
     g0 = blotto_game(h, t, rho, random_state=seed)
     g1 = blotto_game(h, t, rho, random_state=seed)
     assert_array_equal(g1.payoff_profile_array, g0.payoff_profile_array)
コード例 #2
0
 def test_seed(self):
     seed = 0
     h, t = 3, 4
     rho = -0.5
     g0 = blotto_game(h, t, rho, random_state=seed)
     g1 = blotto_game(h, t, rho, random_state=seed)
     assert_array_equal(g1.payoff_profile_array, g0.payoff_profile_array)
コード例 #3
0
 def setup(self):
     self.h, self.t = 4, 3
     rho = 0.5
     self.g = blotto_game(self.h, self.t, rho)
コード例 #4
0
 def setUp(self):
     self.h, self.t = 4, 3
     rho = 0.5
     self.g = blotto_game(self.h, self.t, rho)