fixed OpenAI fetch tasks; added nicer imports

This commit is contained in:
ottofabian
2021-07-30 11:59:02 +02:00
parent f5fcbf7f54
commit a11965827d
41 changed files with 316 additions and 159 deletions
+1 -4
View File
@@ -88,11 +88,8 @@ class TestEnvironments(unittest.TestCase):
def test_environment_determinism(self):
"""Tests that identical seeds produce identical trajectories."""
seed = 0
# Iterate over two trajectories generated using identical sequences of
# random actions, and with identical task random states. Check that the
# observations, rewards, discounts and step types are identical.
# Iterate over two trajectories, which should have the same state and action sequence
for spec in ALL_SPECS:
# try:
with self.subTest(msg=spec.id):
self._run_env(spec.id)
traj1 = self._run_env(spec.id, seed=seed)