gym-examples 3.0.62__py3-none-any.whl → 3.0.64__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.62"
9
+ __version__ = "3.0.64"
@@ -121,8 +121,7 @@ class WSNRoutingEnv(gym.Env):
121
121
  self.total_latency += self.packet_latency[i] + latency_per_hop
122
122
  self.packet_latency[i] = 0
123
123
 
124
- # rewards[i] = self.compute_individual_rewards(i, action)
125
- rewards[i] = self.compute_sum_rewards(rewards[i])
124
+ rewards[i] = self.compute_individual_rewards(i, action)
126
125
  # rewards[i] = np.ones(input_dim) # Reward for transmitting data to the base station
127
126
  dones[i] = True
128
127
  else:
@@ -144,8 +143,7 @@ class WSNRoutingEnv(gym.Env):
144
143
  self.packet_latency[action] += self.packet_latency[i] + latency_per_hop
145
144
  self.packet_latency[i] = 0
146
145
 
147
- # rewards[i] = self.compute_individual_rewards(i, action)
148
- rewards[i] = self.compute_sum_rewards(rewards[i])
146
+ rewards[i] = self.compute_individual_rewards(i, action)
149
147
 
150
148
  # Update the number of packets
151
149
  self.number_of_packets[action] += self.number_of_packets[i]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.62
3
+ Version: 3.0.64
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=PL68DXRPBHvWIYV7lwfJy9I27GGbBxW_lQJg9VUWUGI,193
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=W7e4u78KOcLrk9HWq7zl4nDKNtvIjSLuWapDFNs3EhI,19950
4
+ gym_examples-3.0.64.dist-info/METADATA,sha256=LmANE89J-UiJ9t7IMSjpYB3spZO2gWX5E_AuPX_Q-xA,411
5
+ gym_examples-3.0.64.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.64.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.64.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=KakQdq_VwlLmxMvmK851vus9UpSXm7o_UuHvFdrOUxw,193
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=C31YQj4F3b9_9Bgej-h_Yutxxqxbcaxh0Swl_ZJUZzQ,20118
4
- gym_examples-3.0.62.dist-info/METADATA,sha256=QoYLVhZZTdk52jJf4YPPNJLASUoTOpcYW-PpNhFPAQM,411
5
- gym_examples-3.0.62.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.62.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.62.dist-info/RECORD,,