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 +1 -1
- gym_examples/envs/wsn_env.py +2 -4
- {gym_examples-3.0.62.dist-info → gym_examples-3.0.64.dist-info}/METADATA +1 -1
- gym_examples-3.0.64.dist-info/RECORD +7 -0
- gym_examples-3.0.62.dist-info/RECORD +0 -7
- {gym_examples-3.0.62.dist-info → gym_examples-3.0.64.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.62.dist-info → gym_examples-3.0.64.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -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
|
-
|
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
|
-
|
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]
|
@@ -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,,
|
File without changes
|
File without changes
|