gym-examples 2.0.92__py3-none-any.whl → 2.0.94__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 +3 -2
- {gym_examples-2.0.92.dist-info → gym_examples-2.0.94.dist-info}/METADATA +1 -1
- gym_examples-2.0.94.dist-info/RECORD +7 -0
- gym_examples-2.0.92.dist-info/RECORD +0 -7
- {gym_examples-2.0.92.dist-info → gym_examples-2.0.94.dist-info}/WHEEL +0 -0
- {gym_examples-2.0.92.dist-info → gym_examples-2.0.94.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)/4):
|
49
49
|
|
50
50
|
super(WSNRoutingEnv, self).__init__()
|
51
51
|
|
@@ -289,7 +289,8 @@ class WSNRoutingEnv(gym.Env):
|
|
289
289
|
# return [reward_angle, reward_distance, reward_consumption_energy, reward_dispersion_remaining_energy, reward_number_of_packets]
|
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
|
-
return [reward_angle, reward_distance, reward_consumption_energy, reward_dispersion_remaining_energy]
|
292
|
+
# return [reward_angle, reward_distance, reward_consumption_energy, reward_dispersion_remaining_energy]
|
293
|
+
return [reward_consumption_energy, reward_dispersion_remaining_energy]
|
293
294
|
|
294
295
|
# def network_reward_dispersion_remaining_energy(self):
|
295
296
|
# '''
|
@@ -0,0 +1,7 @@
|
|
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,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=ZTDl6xBkvBmsFz1yMdXEdKeod6LvlH7a8WSUmp3K-4A,193
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=LunrgRj0p_69OS2XzpkgeDlo-buthh4ozBjyraNkl2o,17252
|
4
|
-
gym_examples-2.0.92.dist-info/METADATA,sha256=33kWOnIbdjBOfjMs1EPip7sUwfe_IAB8Ys0-n8jnbhs,411
|
5
|
-
gym_examples-2.0.92.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-2.0.92.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-2.0.92.dist-info/RECORD,,
|
File without changes
|
File without changes
|