예제 #1
0
 def __init__(self, action_space):
     BaseOpponent.__init__(self, action_space)
     self._do_nothing = None
     self._attacks = None
     self._lines_ids = None
     self._next_attack_time = None
     self._attack_period = None
     self._rho_normalization = None
예제 #2
0
 def __init__(self, action_space):
     BaseOpponent.__init__(self, action_space)
     self._do_nothing = None
     self._attacks = None
     self._lines_ids = None
     self._next_attack_time = None
     self._attack_hazard_rate = None
     self._recovery_minimum_duration = None
     self._recovery_rate = None
     self._pmax_pmin_ratio = None
     self._attack_times = None
     self._attack_waiting_times = None
     self._attack_durations = None
     self._attack_counter = None
     self._number_of_attacks = None
     self._episode_max_time = None
     self._env = None  # I need to keep a pointer to the environment for computing the maximum length of the episode
예제 #3
0
 def __init__(self, action_space):
     BaseOpponent.__init__(self, action_space)
     self._do_nothing = None
     self._attacks = None
     self._lines_ids = None
예제 #4
0
 def test_creation_BaseOpponent(self):
     with warnings.catch_warnings():
         warnings.filterwarnings("ignore")
         with make("rte_case5_example", test=True) as env:
             my_opp = BaseOpponent(action_space=env.action_space)
예제 #5
0
 def test_creation_BaseOpponent(self):
     nb_env = 1
     with make("case5_example") as env:
         my_opp = BaseOpponent(action_space=env.action_space)