gym-csle-stopping-game 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gym-csle-stopping-game might be problematic. Click here for more details.
- gym_csle_stopping_game/__version__.py +1 -1
- gym_csle_stopping_game/envs/stopping_game_env.py +4 -4
- {gym_csle_stopping_game-0.6.0.dist-info → gym_csle_stopping_game-0.6.2.dist-info}/METADATA +6 -6
- {gym_csle_stopping_game-0.6.0.dist-info → gym_csle_stopping_game-0.6.2.dist-info}/RECORD +6 -6
- {gym_csle_stopping_game-0.6.0.dist-info → gym_csle_stopping_game-0.6.2.dist-info}/WHEEL +0 -0
- {gym_csle_stopping_game-0.6.0.dist-info → gym_csle_stopping_game-0.6.2.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.6.
|
|
1
|
+
__version__ = '0.6.2'
|
|
@@ -42,7 +42,6 @@ class StoppingGameEnv(BaseEnv):
|
|
|
42
42
|
|
|
43
43
|
# Initialize environment state
|
|
44
44
|
self.state = StoppingGameState(b1=self.config.b1, L=self.config.L)
|
|
45
|
-
|
|
46
45
|
# Setup spaces
|
|
47
46
|
self.attacker_observation_space = self.config.attacker_observation_space()
|
|
48
47
|
self.defender_observation_space = self.config.defender_observation_space()
|
|
@@ -73,7 +72,7 @@ class StoppingGameEnv(BaseEnv):
|
|
|
73
72
|
a1, a2_profile = action_profile
|
|
74
73
|
pi2, a2 = a2_profile
|
|
75
74
|
assert pi2.shape[0] == len(self.config.S)
|
|
76
|
-
assert pi2.shape[1] == len(self.config.
|
|
75
|
+
assert pi2.shape[1] == len(self.config.A2)
|
|
77
76
|
done = False
|
|
78
77
|
info: Dict[str, Any] = {}
|
|
79
78
|
|
|
@@ -84,8 +83,7 @@ class StoppingGameEnv(BaseEnv):
|
|
|
84
83
|
else:
|
|
85
84
|
# Compute r, s', b',o'
|
|
86
85
|
r = self.config.R[self.state.l - 1][a1][a2][self.state.s]
|
|
87
|
-
self.state.s = StoppingGameUtil.sample_next_state(l=self.state.l, a1=a1, a2=a2,
|
|
88
|
-
T=self.config.T,
|
|
86
|
+
self.state.s = StoppingGameUtil.sample_next_state(l=self.state.l, a1=a1, a2=a2, T=self.config.T,
|
|
89
87
|
S=self.config.S, s=self.state.s)
|
|
90
88
|
o = StoppingGameUtil.sample_next_observation(Z=self.config.Z,
|
|
91
89
|
O=self.config.O, s_prime=self.state.s)
|
|
@@ -437,6 +435,8 @@ class StoppingGameEnv(BaseEnv):
|
|
|
437
435
|
:param l: the number of stops remaining
|
|
438
436
|
:return: the observation
|
|
439
437
|
"""
|
|
438
|
+
if not history:
|
|
439
|
+
raise ValueError("History must not be empty")
|
|
440
440
|
return [history[-1]]
|
|
441
441
|
|
|
442
442
|
def generate_random_particles(self, o: int, num_particles: int) -> List[int]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gym-csle-stopping-game
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: OpenAI gym reinforcement learning environment of a Dynkin (Optimal stopping) game in CSLE
|
|
5
5
|
Author: Kim Hammar
|
|
6
6
|
Author-email: hammar.kim@gmail.com
|
|
@@ -15,11 +15,11 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
15
15
|
Classifier: Intended Audience :: Science/Research
|
|
16
16
|
Requires-Python: >=3.8
|
|
17
17
|
Requires-Dist: gymnasium >=0.27.1
|
|
18
|
-
Requires-Dist: csle-base >=0.6.
|
|
19
|
-
Requires-Dist: csle-common >=0.6.
|
|
20
|
-
Requires-Dist: csle-attacker >=0.6.
|
|
21
|
-
Requires-Dist: csle-defender >=0.6.
|
|
22
|
-
Requires-Dist: csle-collector >=0.6.
|
|
18
|
+
Requires-Dist: csle-base >=0.6.2
|
|
19
|
+
Requires-Dist: csle-common >=0.6.2
|
|
20
|
+
Requires-Dist: csle-attacker >=0.6.2
|
|
21
|
+
Requires-Dist: csle-defender >=0.6.2
|
|
22
|
+
Requires-Dist: csle-collector >=0.6.2
|
|
23
23
|
Provides-Extra: testing
|
|
24
24
|
Requires-Dist: pytest >=6.0 ; extra == 'testing'
|
|
25
25
|
Requires-Dist: pytest-cov >=2.0 ; extra == 'testing'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
gym_csle_stopping_game/__init__.py,sha256=ooy6TjxvBi1sZMEX3_mVlvfskqI5GqwITWzI882tfk0,657
|
|
2
|
-
gym_csle_stopping_game/__version__.py,sha256=
|
|
2
|
+
gym_csle_stopping_game/__version__.py,sha256=gMDttCkJF3h8Jr3eq_8NuJj26-9xyjg-YjR2bSNcGxM,22
|
|
3
3
|
gym_csle_stopping_game/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
gym_csle_stopping_game/constants/constants.py,sha256=eIoD9eXifZ73kP-lSlvG-IXCpe4n6D-_aDygx0zOr5U,1030
|
|
5
5
|
gym_csle_stopping_game/dao/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -8,12 +8,12 @@ gym_csle_stopping_game/dao/stopping_game_config.py,sha256=0_CtrFod1NkZ5eqlwIq68I
|
|
|
8
8
|
gym_csle_stopping_game/dao/stopping_game_defender_pomdp_config.py,sha256=3FfNi2-R6n1LqjA644EVq-v7wtp6sqyEkEdBN90-2n0,3753
|
|
9
9
|
gym_csle_stopping_game/dao/stopping_game_state.py,sha256=v9jEG7-reOQTkSyTZH64jCZ8IyixXFEIk4HIcmhBHiw,2828
|
|
10
10
|
gym_csle_stopping_game/envs/__init__.py,sha256=SQHaqXI0_2HYsC8i9swXEHDFcXKEYpb8GRP9l_S0Sw8,74
|
|
11
|
-
gym_csle_stopping_game/envs/stopping_game_env.py,sha256=
|
|
11
|
+
gym_csle_stopping_game/envs/stopping_game_env.py,sha256=CF0jZpYm7KS9WAv9uAoylelGrpsin1klPCQAkDXL5jI,22772
|
|
12
12
|
gym_csle_stopping_game/envs/stopping_game_mdp_attacker_env.py,sha256=bgoddSXUT-TkDN5T8jJljsul4CRYiPRW7VMmtM7QrwU,10877
|
|
13
13
|
gym_csle_stopping_game/envs/stopping_game_pomdp_defender_env.py,sha256=sX680Blqqw69NcXTOypBE97LyR9jLZAumBie5iSjPGc,10580
|
|
14
14
|
gym_csle_stopping_game/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
gym_csle_stopping_game/util/stopping_game_util.py,sha256=s3a5jkUlbh_2K6ALz5riE1w9gfdosf4N3yvrNMBxHUg,11363
|
|
16
|
-
gym_csle_stopping_game-0.6.
|
|
17
|
-
gym_csle_stopping_game-0.6.
|
|
18
|
-
gym_csle_stopping_game-0.6.
|
|
19
|
-
gym_csle_stopping_game-0.6.
|
|
16
|
+
gym_csle_stopping_game-0.6.2.dist-info/METADATA,sha256=NRCTjXgqDwU90rmTE_fNCe6Z-udOQKwQWUPXAelp38I,2162
|
|
17
|
+
gym_csle_stopping_game-0.6.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
18
|
+
gym_csle_stopping_game-0.6.2.dist-info/top_level.txt,sha256=3DBHkAEI00nq0aXZlJUkXJrLiwkcJCfaFoYcaOzEZUU,23
|
|
19
|
+
gym_csle_stopping_game-0.6.2.dist-info/RECORD,,
|
|
File without changes
|
{gym_csle_stopping_game-0.6.0.dist-info → gym_csle_stopping_game-0.6.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|