gym-examples 2.0.9__py3-none-any.whl → 2.0.10__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.9"
9
+ __version__ = "2.0.10"
@@ -116,9 +116,9 @@ class WSNRoutingEnv(gym.Env):
116
116
  rewards[i] = self.compute_individual_rewards(i, action, neighbors_i, remaining_energy_before)
117
117
  self.number_of_packets[i] = 0 # Reset the number of packets of the sensor i
118
118
  # Calculate final reward
119
- # rewards_individual = torch.tensor(rewards[i], dtype=torch.double)
120
- # final_reward = net(rewards_individual)
121
- final_reward = sum(rewards[i])
119
+ rewards_individual = torch.tensor(rewards[i], dtype=torch.double)
120
+ final_reward = net(rewards_individual)
121
+ # final_reward = sum(rewards[i])
122
122
  rewards[i] = final_reward
123
123
 
124
124
  for i in range(self.n_sensors):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 2.0.9
3
+ Version: 2.0.10
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=Xv8KufaWTkDnJ2noVaDh4OFIlwTqFk5KrsxPDNtkDKM,193
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=Qc2oUPLVpbyEdBMHEhpxuBd-CcLHvfcIEV37WP2mkU0,15135
4
+ gym_examples-2.0.10.dist-info/METADATA,sha256=YOCYFjDkD2d9uVAYmKQNDI3V-Ib_G-zPrSH_WrYcjGo,411
5
+ gym_examples-2.0.10.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-2.0.10.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-2.0.10.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=gqSyx1EEuQeAWNhqLrgfA_OQ8AWGNJ0ZHREx2Wvr6kk,192
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=Iq3O6LUZnOwIry3rZRcSkfe0jLfKJnyv5ZL18aDwAvQ,15137
4
- gym_examples-2.0.9.dist-info/METADATA,sha256=xjdl49NkTN3aMG215C5vqaflQgwwesIAQdUw_xBjRiE,410
5
- gym_examples-2.0.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-2.0.9.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-2.0.9.dist-info/RECORD,,