gym-examples 3.0.39__py3-none-any.whl → 3.0.41__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 +1 -0
- {gym_examples-3.0.39.dist-info → gym_examples-3.0.41.dist-info}/METADATA +1 -1
- gym_examples-3.0.41.dist-info/RECORD +7 -0
- gym_examples-3.0.39.dist-info/RECORD +0 -7
- {gym_examples-3.0.39.dist-info → gym_examples-3.0.41.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.39.dist-info → gym_examples-3.0.41.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -154,6 +154,7 @@ class WSNRoutingEnv(gym.Env):
|
|
154
154
|
self.number_of_packets[i] = 0 # Reset the number of packets of the sensor i
|
155
155
|
# Calculate final reward
|
156
156
|
rewards[i] = self.compute_attention_rewards(rewards[i])
|
157
|
+
# rewards[i] = self.compute_sum_rewards(rewards[i])
|
157
158
|
for i in range(self.n_sensors):
|
158
159
|
if (self.remaining_energy[i] <= 0) or (self.number_of_packets[i] <= 0):
|
159
160
|
dones[i] = True
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=E-hNllIsr6VUy6F6zNTm8CNUxc1itSRxOQFrug2wQAc,193
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=baY2wApJDC4zeoc-lLSSj2GgQnOEwdwHeI4CNB_0-MI,19440
|
4
|
+
gym_examples-3.0.41.dist-info/METADATA,sha256=ztaL2gAeYgqhaqSJhQy7xUVM_wxwCYx7-QPWEPZiO5A,411
|
5
|
+
gym_examples-3.0.41.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.41.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.41.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=-8Br4o4oV2TdApkw-4OBt65sSwMuSitEzlZT68YaSno,193
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=CczcSZ9Dswq7wpVck9Gba4M_X4RvREaKMbK-kdDazTE,19375
|
4
|
-
gym_examples-3.0.39.dist-info/METADATA,sha256=jwh6RE3JjJU28xo2bCzuICt-RlEh6RPkqNFW4JRSUh0,411
|
5
|
-
gym_examples-3.0.39.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.39.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.39.dist-info/RECORD,,
|
File without changes
|
File without changes
|