gym-examples 2.0.62__py3-none-any.whl → 2.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 CHANGED
@@ -6,4 +6,4 @@ register(
6
6
  max_episode_steps=50,
7
7
  )
8
8
 
9
- __version__ = "2.0.62"
9
+ __version__ = "2.0.64"
@@ -70,9 +70,12 @@ class WSNRoutingEnv(gym.Env):
70
70
 
71
71
  def reset(self):
72
72
  # print individual rewards
73
- print("\n=================================================")
74
- print(f"Rewards: {self.rewards_individual}")
75
- print("==================================================\n")
73
+
74
+ if self.rewards_individual != []:
75
+ print("\n=================================================")
76
+ print(f"Episode: {self.episode_count}")
77
+ print(f"Rewards: {self.rewards_individual}")
78
+ print("=================================================\n")
76
79
  # Initialize the position of the sensors randomly
77
80
  self.sensor_positions = np.random.rand(self.n_sensors, 2) * (upper_bound - lower_bound) + lower_bound
78
81
  self.distance_to_base = np.linalg.norm(self.sensor_positions - base_station_position, axis=1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 2.0.62
3
+ Version: 2.0.64
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=vpYaHWxBDZC_6WxL3W4ndPCNXkgY_58hsYY-spz7IT0,193
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=JNjjrUYOiFRzWkCKeZREnB5-VKxotUC9j2Qxr1sVRzY,16066
4
+ gym_examples-2.0.64.dist-info/METADATA,sha256=y6u5YHjql0xtJdEx5EmcKhVcBlySL19HHrRZ2JmqTE0,411
5
+ gym_examples-2.0.64.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-2.0.64.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-2.0.64.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=UdsOi_uvrx2c0p-hT7p4HgGT7LersLo1EN8BSlPLFYI,193
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=_Ep8jV3UwkXUAF2jcBlJtgjodw2FQmpH1KLGpIcncLY,15949
4
- gym_examples-2.0.62.dist-info/METADATA,sha256=d7MCqv53jpHnXR18oCGf4yFag3V_qa7sdosuZwPjWCE,411
5
- gym_examples-2.0.62.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-2.0.62.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-2.0.62.dist-info/RECORD,,