gym-examples 3.0.189__py3-none-any.whl → 3.0.191__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 -4
- {gym_examples-3.0.189.dist-info → gym_examples-3.0.191.dist-info}/METADATA +1 -1
- gym_examples-3.0.191.dist-info/RECORD +7 -0
- gym_examples-3.0.189.dist-info/RECORD +0 -7
- {gym_examples-3.0.189.dist-info → gym_examples-3.0.191.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.189.dist-info → gym_examples-3.0.191.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -69,8 +69,6 @@ class WSNRoutingEnv(gym.Env):
|
|
69
69
|
self.episode_network_lifetime = []
|
70
70
|
self.episode_average_latency = []
|
71
71
|
|
72
|
-
self.steps = 0
|
73
|
-
|
74
72
|
self.n_sensors = n_sensors
|
75
73
|
self.n_agents = n_sensors
|
76
74
|
self.coverage_radius = coverage_radius
|
@@ -101,8 +99,9 @@ class WSNRoutingEnv(gym.Env):
|
|
101
99
|
self.episode_network_lifetime.append(self.network_lifetime)
|
102
100
|
self.episode_average_latency.append(self.average_latency)
|
103
101
|
|
104
|
-
|
105
|
-
|
102
|
+
if self.episode_count > 1:
|
103
|
+
print(f"Episode: {self.episode_count}")
|
104
|
+
print(self.get_metrics())
|
106
105
|
|
107
106
|
self.episode_return = 0
|
108
107
|
self.sensor_positions = np.random.rand(self.n_sensors, 2) * (upper_bound - lower_bound) + lower_bound
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=5p5-8XnOSIHF4u8UVV1Dck-ijxLqfe6YATs6EauYmlk,194
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=tuJVbaSxXsO94sHXMucBOzEnwMqh7um5Vs5L6MktQPc,25747
|
4
|
+
gym_examples-3.0.191.dist-info/METADATA,sha256=KQ0ncPYcGsriRN1vxG2KOXOVjxe5SdqDUje8qkBL2QI,412
|
5
|
+
gym_examples-3.0.191.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.191.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.191.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=RUREbDNHenL6o2FrQx6HkgsC_yIUkdhqxYNaLgFbOS0,194
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=rO5xSHPrdh4U6nnvhhf2VhewxFlloQjaAt-MmW5zrgc,25729
|
4
|
-
gym_examples-3.0.189.dist-info/METADATA,sha256=yQzTt68ZK6guPdqDH5lUk698Edd75P77FfRP2rUZDdw,412
|
5
|
-
gym_examples-3.0.189.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.189.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.189.dist-info/RECORD,,
|
File without changes
|
File without changes
|