gym-examples 3.0.61__py3-none-any.whl → 3.0.62__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.61"
9
+ __version__ = "3.0.62"
@@ -121,7 +121,8 @@ 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)
124
+ # rewards[i] = self.compute_individual_rewards(i, action)
125
+ rewards[i] = self.compute_sum_rewards(rewards[i])
125
126
  # rewards[i] = np.ones(input_dim) # Reward for transmitting data to the base station
126
127
  dones[i] = True
127
128
  else:
@@ -143,7 +144,8 @@ class WSNRoutingEnv(gym.Env):
143
144
  self.packet_latency[action] += self.packet_latency[i] + latency_per_hop
144
145
  self.packet_latency[i] = 0
145
146
 
146
- rewards[i] = self.compute_individual_rewards(i, action)
147
+ # rewards[i] = self.compute_individual_rewards(i, action)
148
+ rewards[i] = self.compute_sum_rewards(rewards[i])
147
149
 
148
150
  # Update the number of packets
149
151
  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.61
3
+ Version: 3.0.62
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=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,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=IH63OyB1NPajjFps9UYA1XqAvhQw2RprG7GzTT9SL-U,193
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=DI4KfntcvCq1Mmb95FU0fURIauLM2eeWj0j8iwM4j8Q,19980
4
- gym_examples-3.0.61.dist-info/METADATA,sha256=6EFYKBK6UqeR3RAnhnnFfAZ3ZWArr4OYptVB0LzaI2A,411
5
- gym_examples-3.0.61.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.61.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.61.dist-info/RECORD,,