gym-examples 3.0.33__py3-none-any.whl → 3.0.35__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 +1 -1
- gym_examples/envs/wsn_env.py +4 -1
- {gym_examples-3.0.33.dist-info → gym_examples-3.0.35.dist-info}/METADATA +1 -1
- gym_examples-3.0.35.dist-info/RECORD +7 -0
- gym_examples-3.0.33.dist-info/RECORD +0 -7
- {gym_examples-3.0.33.dist-info → gym_examples-3.0.35.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.33.dist-info → gym_examples-3.0.35.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -169,7 +169,10 @@ class WSNRoutingEnv(gym.Env):
|
|
169
169
|
reward_latency = self.compute_reward_latency()
|
170
170
|
rewards_metrics = [reward_packet_delivery_ratio, reward_latency]
|
171
171
|
rewards_metrics = self.compute_attention_rewards(rewards_metrics)
|
172
|
-
|
172
|
+
print(f"types: {type(rewards)}, {type(rewards_metrics)}")
|
173
|
+
print(f"rewards: {rewards}, {rewards_metrics}")
|
174
|
+
raise ValueError("Stop")
|
175
|
+
rewards = np.array([r.detach().numpy() + rewards_metrics.detach().numpy() for r in rewards])
|
173
176
|
|
174
177
|
return self._get_obs(), rewards, dones, {}
|
175
178
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=TUJSLkoJXyceTTwrQCXncmSEoUIfb3SPdA3bSvNFtYc,193
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=ENxEXTO436RvIMezy5HzvSEMFIjSbjIXU-tylfhcyns,19092
|
4
|
+
gym_examples-3.0.35.dist-info/METADATA,sha256=luDLCfgU0Hqa9gLk-HHOIqZVEaUlwzuBYsZ8iWXMbj4,411
|
5
|
+
gym_examples-3.0.35.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.35.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.35.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=wE0UbTYKFzfps8WaV0sJVNYVtrIOFHjFfECrlT0DlmE,193
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=uV5c1RRIyTkA6KMmKuZTLsDWjFNVfALOUoUMLDuwdz0,18917
|
4
|
-
gym_examples-3.0.33.dist-info/METADATA,sha256=ebgEj1_GpRVmSw5xzyC88RYQNQ7H47LBmLkdQa__jtA,411
|
5
|
-
gym_examples-3.0.33.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.33.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|