gym-examples 3.0.214__py3-none-any.whl → 3.0.216__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.
- gym_examples/__init__.py +1 -1
- gym_examples/envs/wsn_env.py +3 -1
- {gym_examples-3.0.214.dist-info → gym_examples-3.0.216.dist-info}/METADATA +1 -1
- gym_examples-3.0.216.dist-info/RECORD +7 -0
- gym_examples-3.0.214.dist-info/RECORD +0 -7
- {gym_examples-3.0.214.dist-info → gym_examples-3.0.216.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.214.dist-info → gym_examples-3.0.216.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -88,7 +88,7 @@ class WSNRoutingEnv(gym.Env):
|
|
88
88
|
self.reset()
|
89
89
|
|
90
90
|
def reset(self):
|
91
|
-
|
91
|
+
|
92
92
|
if self.episode_count > 1 and os.getenv('PRINT_STATS') == 'True': # Statistics for the PPO algorithm during the training phase
|
93
93
|
self.episode_returns.append(self.episode_return)
|
94
94
|
self.episode_std_remaining_energy.append(np.std(self.remaining_energy))
|
@@ -125,6 +125,8 @@ class WSNRoutingEnv(gym.Env):
|
|
125
125
|
|
126
126
|
self.episode_count += 1
|
127
127
|
|
128
|
+
self.get_metrics()
|
129
|
+
|
128
130
|
return self._get_obs()
|
129
131
|
|
130
132
|
def step(self, actions):
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=o__-P3lpN1pbgkPuS7ZUQG94BBtBEvfdtR0G-MeVLP8,194
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=jAinwY1niJzuF5xysMuOuDEcemjUWz2Gj0FqwOrszUA,26095
|
4
|
+
gym_examples-3.0.216.dist-info/METADATA,sha256=JA4Q9MVqpoz3-sMqeR3J7ZGbC3v3D4x3g_57xOL7uD4,412
|
5
|
+
gym_examples-3.0.216.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.216.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.216.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=-xns6k1AHpX1BjPIxRK6fwlidWEOkNrErMM1GA7tnp8,194
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=FvQq-Y7S-yOKE1p0fU4bubGP0eWUiciMtsc4kUHmjoo,26057
|
4
|
-
gym_examples-3.0.214.dist-info/METADATA,sha256=6pmOXSGy1DBzOnOhqFv39uiNz59d_sQafV0jlQVkTic,412
|
5
|
-
gym_examples-3.0.214.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.214.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.214.dist-info/RECORD,,
|
File without changes
|
File without changes
|