gym-examples 3.0.327__py3-none-any.whl → 3.0.329__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
@@ -5,4 +5,4 @@ register(
5
5
  entry_point="gym_examples.envs:WSNRoutingEnv",
6
6
  )
7
7
 
8
- __version__ = "3.0.327"
8
+ __version__ = "3.0.329"
@@ -86,6 +86,12 @@ class WSNRoutingEnv(gym.Env):
86
86
  self.reset()
87
87
 
88
88
  def reset(self):
89
+
90
+ if self.number_of_steps > 3: # Change 30000 to a parameter taken from args or kwargs
91
+ print("Episode count: ", self.episode_count)
92
+ print("get_metrics: ", self.get_metrics())
93
+ print(f"self._get_obs(): {self._get_obs()}")
94
+
89
95
  self.episode_return = 0
90
96
  self.sensor_positions = np.random.rand(self.n_sensors, 2) * (upper_bound - lower_bound) + lower_bound
91
97
  self.distance_to_base = np.linalg.norm(self.sensor_positions - base_station_position, axis=1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.327
3
+ Version: 3.0.329
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=Kv0_VJbRMO_jlq13pBeI0_JdWZi830fkyh2PjQGJkSM,166
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=PisRG7sn61Pz6BvNrc5i81wUayxr7wXx6vTVsx3APZ0,23666
4
+ gym_examples-3.0.329.dist-info/METADATA,sha256=cZ5Mn7hJq20ik3MNX4rRO2FjJykqSB9U9KEB5qck3OQ,412
5
+ gym_examples-3.0.329.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.329.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.329.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=rbUWLYbdp0K_uJJSxRSPAIdMURPQ_vmGuRs2kcQ3mhg,166
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=mib42hRz-oSXzeG7ALIJ65hPq5JG2g6YnB9mRIVuTD0,23396
4
- gym_examples-3.0.327.dist-info/METADATA,sha256=OhAp8jBCN6dDUfDhnJvkp_K9MJpScHQsw5Vzi69QxxY,412
5
- gym_examples-3.0.327.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.327.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.327.dist-info/RECORD,,