gym-examples 3.0.186__py3-none-any.whl → 3.0.188__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 CHANGED
@@ -6,4 +6,4 @@ register(
6
6
  max_episode_steps=50,
7
7
  )
8
8
 
9
- __version__ = "3.0.186"
9
+ __version__ = "3.0.188"
@@ -69,6 +69,8 @@ class WSNRoutingEnv(gym.Env):
69
69
  self.episode_network_lifetime = []
70
70
  self.episode_average_latency = []
71
71
 
72
+ self.steps = 0
73
+
72
74
  self.n_sensors = n_sensors
73
75
  self.n_agents = n_sensors
74
76
  self.coverage_radius = coverage_radius
@@ -98,8 +100,9 @@ class WSNRoutingEnv(gym.Env):
98
100
  self.episode_packet_delivery_ratio.append(self.packet_delivery_ratio)
99
101
  self.episode_network_lifetime.append(self.network_lifetime)
100
102
  self.episode_average_latency.append(self.average_latency)
101
- print(f"Episode: {self.episode_count}")
102
- print(self.get_metrics())
103
+
104
+ print(f"Episode: {self.episode_count}")
105
+ print(self.get_metrics())
103
106
 
104
107
  self.episode_return = 0
105
108
  self.sensor_positions = np.random.rand(self.n_sensors, 2) * (upper_bound - lower_bound) + lower_bound
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.186
3
+ Version: 3.0.188
4
4
  Summary: A custom environment for multi-agent reinforcement learning focused on WSN routing.
5
5
  Home-page: https://github.com/gedji/CODES.git
6
6
  Author: Georges Djimefo
@@ -0,0 +1,7 @@
1
+ gym_examples/__init__.py,sha256=pKpy_KEhpGx_uhp8gmtn7lc0Mx_xNL28GH1G90UMz-U,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.188.dist-info/METADATA,sha256=GXoO6NXH-BYGo7GjF8rPN_CZcLnPiBkfvMjTe3RF7ak,412
5
+ gym_examples-3.0.188.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.188.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.188.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=U7dXZkWTF-yBDlPgEBQRIhkCuXyc-Dr80Rzz9D92bKQ,194
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=aYprA2YqcxEH11AFhQKZGpzX4azYgWWn2u1lMitidQ4,25701
4
- gym_examples-3.0.186.dist-info/METADATA,sha256=icwRFP8ftYaNL4DXfq3HQaiP0mipmnSK7zwdoW4wsZc,412
5
- gym_examples-3.0.186.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.186.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.186.dist-info/RECORD,,