gym-examples 3.0.9__py3-none-any.whl → 3.0.11__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.9"
9
+ __version__ = "3.0.11"
@@ -173,7 +173,8 @@ class WSNRoutingEnv(gym.Env):
173
173
  return [{'remaining_energy': np.array([e]),
174
174
  'consumption_energy': np.array([initial_energy - e]),
175
175
  'sensor_positions': p,
176
- 'number_of_packets': np.array([d])} for e, p, d in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)]
176
+ 'number_of_packets': np.array([d]),
177
+ 'statistics': self.get_metrics()} for e, p, d in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)]
177
178
 
178
179
  def _get_observation_space(self):
179
180
  return Dict({
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.9
3
+ Version: 3.0.11
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=1lxyu827-V2ZaLdyT8CWSu72qg4KpELyF9TPJa5WHP8,193
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=xg4nJw0EyK3_Vt4vJpyhEIG44FnpFPSOiSsQM1KxDt8,17613
4
+ gym_examples-3.0.11.dist-info/METADATA,sha256=C02A3P67Rj7IM11ScYSw9WldTV02Mc-orJA9kRGtbnI,411
5
+ gym_examples-3.0.11.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.11.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.11.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=wiKwIoaTEvfLiuLBgPa1ublPK01LyRLgkVXk_3ojGIo,192
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=fRGbJ1P73yX4HCvY0QHKojTzsMjYhWcLpuWybHW7goc,17561
4
- gym_examples-3.0.9.dist-info/METADATA,sha256=Jg27W0WT63_5PWOrWyoJ-9XlCMQNfKU8QUivJGDigSM,410
5
- gym_examples-3.0.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.9.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.9.dist-info/RECORD,,