gym-examples 3.0.201__py3-none-any.whl → 3.0.203__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__ = "3.0.201"
9
+ __version__ = "3.0.203"
@@ -89,7 +89,7 @@ class WSNRoutingEnv(gym.Env):
89
89
 
90
90
  def reset(self):
91
91
 
92
- if self.episode_count > 1 and os.getenv('PRINT_STATS') == 'True':
92
+ if self.episode_count > 1 and os.getenv('PRINT_STATS') == 'True': # Statistics for the PPO algorithm during the training phase
93
93
  self.episode_returns.append(self.episode_return)
94
94
  self.episode_std_remaining_energy.append(np.std(self.remaining_energy))
95
95
  self.episode_mean_remaining_energy.append(np.mean(self.remaining_energy))
@@ -99,7 +99,7 @@ class WSNRoutingEnv(gym.Env):
99
99
  self.episode_network_lifetime.append(self.network_lifetime)
100
100
  self.episode_average_latency.append(self.average_latency)
101
101
 
102
- if self.episode_count > 1:
102
+ if self.episode_count > 1 and os.getenv('PRINT_STATS') == 'True-False': # Statistics for the PPO algorithm during the evaluation phase
103
103
  print(f"Episode: {self.episode_count}")
104
104
  print(self.get_metrics())
105
105
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.201
3
+ Version: 3.0.203
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=VIQ96OOGEenUGa2oX5Bv8eBH4KvWjbKoCtLWx_11jSw,194
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=PFcrAnbBjdhC11_qfnSyAcyXe2IlwdW37Ru0nNXwIYI,25918
4
+ gym_examples-3.0.203.dist-info/METADATA,sha256=tzAeJBulzrNTnBLFCEja9JmoJsXgf70ZR_2huot02hU,412
5
+ gym_examples-3.0.203.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.203.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.203.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=-zz-yoSZRtKJ7iYh5_Mbdp5_5meUMb5UBtzW7bUQG4w,194
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=qHRGU7dVaA0QYPjwZ8MevHwa7ALvDSAgP5EsEczO32A,25749
4
- gym_examples-3.0.201.dist-info/METADATA,sha256=qMPfKIe62_4VRP35AbUI9mcRrgc3Yd6nPsiaegPTAOU,412
5
- gym_examples-3.0.201.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.201.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.201.dist-info/RECORD,,