gym-examples 2.0.94__py3-none-any.whl → 2.0.96__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 -2
- {gym_examples-2.0.94.dist-info → gym_examples-2.0.96.dist-info}/METADATA +1 -1
- gym_examples-2.0.96.dist-info/RECORD +7 -0
- gym_examples-2.0.94.dist-info/RECORD +0 -7
- {gym_examples-2.0.94.dist-info → gym_examples-2.0.96.dist-info}/WHEEL +0 -0
- {gym_examples-2.0.94.dist-info → gym_examples-2.0.96.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -45,7 +45,7 @@ net = net.double() # Convert the weights to Double
|
|
45
45
|
|
46
46
|
|
47
47
|
class WSNRoutingEnv(gym.Env):
|
48
|
-
def __init__(self, n_sensors = 20, coverage_radius=(upper_bound - lower_bound)/
|
48
|
+
def __init__(self, n_sensors = 20, coverage_radius=(upper_bound - lower_bound)/8):
|
49
49
|
|
50
50
|
super(WSNRoutingEnv, self).__init__()
|
51
51
|
|
@@ -290,7 +290,7 @@ class WSNRoutingEnv(gym.Env):
|
|
290
290
|
# return [reward_angle, reward_distance, reward_consumption_energy, reward_number_of_packets]
|
291
291
|
# return [reward_angle, reward_distance, reward_dispersion_remaining_energy, reward_number_of_packets]
|
292
292
|
# return [reward_angle, reward_distance, reward_consumption_energy, reward_dispersion_remaining_energy]
|
293
|
-
return [reward_consumption_energy, reward_dispersion_remaining_energy]
|
293
|
+
return [reward_distance, reward_consumption_energy, reward_dispersion_remaining_energy]
|
294
294
|
|
295
295
|
# def network_reward_dispersion_remaining_energy(self):
|
296
296
|
# '''
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=nj8xbaShG15iL4Q7JUXqNZpLh8MflgykqaZsjzfsAB8,193
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=M_7b55Lctp0eKSdy3JeiLoufRqVOSKWq_X9cEzH-ZoI,17351
|
4
|
+
gym_examples-2.0.96.dist-info/METADATA,sha256=mjAxya0FJtINAdifpBvvowkyhWT6HXLiOEU8KpjRkyA,411
|
5
|
+
gym_examples-2.0.96.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-2.0.96.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-2.0.96.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=BCrYb02Se8tVH-sfzUv3PNcYiSLYmAsfFZ7hEHE0qZY,193
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=nF78O9pbUQZzC73kpgAQySISrQ-Lahipl4Dm6pqgLPU,17334
|
4
|
-
gym_examples-2.0.94.dist-info/METADATA,sha256=ZTZIzAuOn138iN5k_F7MS2laG-0Hoyyczcm6FOLnwk0,411
|
5
|
-
gym_examples-2.0.94.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-2.0.94.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-2.0.94.dist-info/RECORD,,
|
File without changes
|
File without changes
|