gym-examples 3.0.165__py3-none-any.whl → 3.0.167__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.165"
9
+ __version__ = "3.0.167"
@@ -8,6 +8,7 @@ from datetime import datetime
8
8
  import torch
9
9
  import torch.nn as nn
10
10
  import torch.nn.functional as F
11
+ import os
11
12
 
12
13
  # Define the network parameters for the final reward function
13
14
  input_dim = 7 # length of the individual rewards vector
@@ -74,7 +75,7 @@ class WSNRoutingEnv(gym.Env):
74
75
  self.reset()
75
76
 
76
77
  def reset(self):
77
- if self.episode_count > 1 and self.print_stats:
78
+ if self.episode_count > 1 and os.getenv('PRINT_STATS') == '1':
78
79
  print(f"Episode: {self.episode_count}")
79
80
  print(f"This episode ends with # Steps: {self.log_steps}")
80
81
  print(f"This episode ends with Done: {self.log_done}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.165
3
+ Version: 3.0.167
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=skAF_aeIYspj8jzblD8MdAQ-UHo9jCZdEOnkBpdg1FQ,194
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=yZDuhrioWV6p0cySol8Nl_f8NDzw0KvI0KwbTloE-CE,22965
4
+ gym_examples-3.0.167.dist-info/METADATA,sha256=U2Ewa0n8PgUJpkYUVgECLhbvqeb6NBUDHYX8MJJ9VQA,412
5
+ gym_examples-3.0.167.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.167.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.167.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=9eHrfJNUR5WiHlvcdZEGqvUJQvN5qisLUdE1W7zu5Is,194
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=u_NhkSw9EbB9ESDrGH2VHUXQmT0JzF1t73KJrJz7ZQM,22939
4
- gym_examples-3.0.165.dist-info/METADATA,sha256=FP1Y41PkSnuL50jUoNOxXmWuVBgRtT6jhn6oU_d2we0,412
5
- gym_examples-3.0.165.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.165.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.165.dist-info/RECORD,,