gym-examples 3.0.138__py3-none-any.whl → 3.0.139__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.138"
9
+ __version__ = "3.0.139"
@@ -1,7 +1,7 @@
1
1
  import copy
2
2
  import gym
3
3
  import numpy as np
4
- from gym.spaces import Discrete, Box, Tuple, Dict, MultiDiscrete
4
+ from gym.spaces import Discrete, Box, Tuple, Dict, MultiDiscrete, flatdim
5
5
  import matplotlib.pyplot as plt
6
6
  import csv
7
7
  from datetime import datetime
@@ -63,6 +63,20 @@ class WSNRoutingEnv(gym.Env):
63
63
  tuple([self._get_observation_space() for _ in range(self.n_sensors)])
64
64
  )
65
65
 
66
+ # ma_spaces = []
67
+ # for sa_obs in self.observation_space:
68
+ # flatdim = flatdim(sa_obs)
69
+ # ma_spaces += [
70
+ # Box(
71
+ # low=-float("inf"),
72
+ # high=float("inf"),
73
+ # shape=(flatdim,),
74
+ # dtype=np.float32,
75
+ # )
76
+ # ]
77
+
78
+ # self.observation_space = Tuple(tuple(ma_spaces))
79
+
66
80
  self.action_space = Tuple(tuple([Discrete(self.n_sensors + 1)] * self.n_agents))
67
81
 
68
82
  self.reset()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.138
3
+ Version: 3.0.139
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=hPYdm0_HgGBj5eB9sU4_zn9tf5WqoD2u8HduOQpIh_Q,194
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=Ua2WRjOlSuhzv4dT9tas9W5GRtsDt1xute41vlly6ng,21964
4
+ gym_examples-3.0.139.dist-info/METADATA,sha256=0A3bPf6ySrrao6UAqjttoN8nEaAueqwldZcSPT6WYNU,412
5
+ gym_examples-3.0.139.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.139.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.139.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=MC6br6iarAQVDkHZ_fHL4cow2TXsDQ3El5JDyD-SMs0,194
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=baMc1CiZz4NgtfUQ8LJW3057TCL9dPnuNEsreHMsSzs,21517
4
- gym_examples-3.0.138.dist-info/METADATA,sha256=SogLjiQFZS1A_aJzr_gKY5piRBolr7FAxebEp_wKuds,412
5
- gym_examples-3.0.138.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.138.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.138.dist-info/RECORD,,