From a25aff9830882fbd192bc7471fe1e86fdda9697a Mon Sep 17 00:00:00 2001 From: graham Date: Sun, 30 Jul 2023 16:05:40 -0600 Subject: [PATCH] fix for action with noise type and value needs to be within (low,high) --- docs/tutorials/dataset_creation/point_maze_dataset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tutorials/dataset_creation/point_maze_dataset.py b/docs/tutorials/dataset_creation/point_maze_dataset.py index c86288ec..7b53142d 100644 --- a/docs/tutorials/dataset_creation/point_maze_dataset.py +++ b/docs/tutorials/dataset_creation/point_maze_dataset.py @@ -356,6 +356,7 @@ def __call__(self, env, obs, info, action=None, rew=None, terminated=None, trunc action = waypoint_controller.compute_action(obs) # Add some noise to each step action action += np.random.randn(*action.shape)*0.5 + action = np.clip(action, env.action_space.low, env.action_space.high, dtype=np.float32) obs, rew, terminated, truncated, info = collector_env.step(action) if (n_step + 1) % 200000 == 0: