gym-examples 2.0.108__py3-none-any.whl → 2.0.109__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__ = "2.0.108"
9
+ __version__ = "2.0.109"
@@ -141,7 +141,7 @@ class WSNRoutingEnv(gym.Env):
141
141
  # rewards = [0.5 * r + 0.5 * (self.network_reward_consumption_energy() + self.network_reward_dispersion_remaining_energy()) for r in rewards]
142
142
  # Only proceed if network consumption energy is not zero to avoid unnecessary list comprehension
143
143
  # self.rewards_individual = [r for r in self.rewards_individual if ((r != 0) and (r[len(r) -1] < 1))]
144
-
144
+ rewards = np.mean(rewards)
145
145
  # self.rewards_individual = [{"ind": r, "net_consumption_energy": self.network_reward_consumption_energy(), "net_dispersion_energy": self.network_reward_dispersion_remaining_energy()} for r in self.rewards_individual if ((r != 0) and (self.network_reward_consumption_energy() != 0))]
146
146
  for i in range(self.n_sensors):
147
147
  if (self.remaining_energy[i] <= 0) or (self.number_of_packets[i] <= 0):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 2.0.108
3
+ Version: 2.0.109
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=yWd78RrYN0pk_-cT5CaMuiCtjBKb9aOgsHA7-toIXIs,194
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=PcTXkRFBNNM2SbIL61TY84dJtMHwxg8J-YeZZBD8YtU,17366
4
+ gym_examples-2.0.109.dist-info/METADATA,sha256=gcSuKbFxioy6p70gqZIw9mZ8c-ksW_VPd_kEgrX5cIY,412
5
+ gym_examples-2.0.109.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-2.0.109.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-2.0.109.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=s5xDf13Nz_nNKzeBNAlWJMQjMWjJHQq8XBnYeDjPbmA,194
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=k-QjF9BCKAn1IeAGwJJqUX-XI2OBphD5_SlmO8BQgwI,17332
4
- gym_examples-2.0.108.dist-info/METADATA,sha256=ghC3J6OxS5hTTuny-ZxSA837iLUTLI1qBKz-OZzwSLA,412
5
- gym_examples-2.0.108.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-2.0.108.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-2.0.108.dist-info/RECORD,,