gym-examples 3.0.545__py3-none-any.whl → 3.0.547__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
@@ -5,4 +5,4 @@ register(
5
5
  entry_point="gym_examples.envs:WSNRoutingEnv",
6
6
  )
7
7
 
8
- __version__ = "3.0.545"
8
+ __version__ = "3.0.547"
@@ -57,12 +57,13 @@ net = net.double() # Convert the weights to Double
57
57
  class WSNRoutingEnv(gym.Env):
58
58
 
59
59
  ALGO_NAME = "" # Global flag to control the algorithm name
60
+ gym_examples_current_version = "" # Global flag to control the gym_examples version
60
61
 
61
- def __init__(self, n_sensors = 30, coverage_radius=(upper_bound - lower_bound) * 3/20, num_timesteps = None, version = None):
62
+ def __init__(self, n_sensors = 30, coverage_radius=(upper_bound - lower_bound) * 5/20, num_timesteps = None, version = None):
62
63
 
63
64
  super(WSNRoutingEnv, self).__init__()
64
65
  # Create filenames to save statistics for evaluation
65
- self.statistics_filename = "results/data/Statistics_filename_" + os.getenv('ALGO_NAME') + ".txt"
66
+ self.statistics_filename = "results/data/Statistics_filename_" + os.getenv('ALGO_NAME') + "_" + os.getenv('gym_examples_current_version') + ".txt"
66
67
  with open(self.statistics_filename, 'w') as file:
67
68
  file.write("returns, total_consumption_energy, std_remaining_energy, network_throughput, energy_efficiency, packet_delivery_ratio, network_lifetime, average_latency\n")
68
69
  # Initialize list of episode metrics
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.545
3
+ Version: 3.0.547
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=CJLoz9iq52gjQWnC892jfHyDthTMVEuF1A5TaSH8em8,166
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=EdPqOqXPufPBbwfkn87d7AL9DCHPfzW5bRQi1zwsOXQ,25279
4
+ gym_examples-3.0.547.dist-info/METADATA,sha256=NgztPS8nkDxaIjjUvwS_y_zaOZidQ8e9PUlA_8XO31E,412
5
+ gym_examples-3.0.547.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.547.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.547.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=AGPoH---ij4h-Phk-mYjd_0ur9f__zUQaWhh95zVetk,166
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=Gjqe4ub1BR36L-AGA4_fxrysI0Gqv0oy9A85Uw5jLG8,25140
4
- gym_examples-3.0.545.dist-info/METADATA,sha256=ef0lJZjFC-09An75viUsJv4nenHCQQDxu6nIXbTM8i8,412
5
- gym_examples-3.0.545.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.545.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.545.dist-info/RECORD,,