From c3e0e738fbdd1b0f7bfb47dca335f0825adf18da Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee <jaeyoung.lee@uwaterloo.ca> Date: Wed, 30 Jan 2019 23:20:49 -0500 Subject: [PATCH] Auto stash before merge of "improving_and_refactoring" and "master" --- env/simple_intersection/simple_intersection_env.py | 5 +++-- options/simple_intersection/maneuver_base.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/env/simple_intersection/simple_intersection_env.py b/env/simple_intersection/simple_intersection_env.py index 58ef9a3..5e3355b 100644 --- a/env/simple_intersection/simple_intersection_env.py +++ b/env/simple_intersection/simple_intersection_env.py @@ -53,8 +53,9 @@ class SimpleIntersectionEnv(RoadEnv, EpisodicEnvBase): # can be set to a specific value which may be different than the default. # TODO: check _cost_weights in both here and ManeuverBase. The _cost_weights has to be substituted to here, but it doesn't sometimes. # TODO: set a functionality of setting _cost_weights for low and high level training separately. - _cost_weights = (10.0 * 1e-3, 10.0 * 1e-3, 0.25 * 1e-3, 1.0 * 1e-3, - 100.0 * 1e-3, 0.1 * 1e-3, 0.05 * 1e-3, 0.1 * 1e-3) + _cost_weights = (0, 0, 0, 0, 0, 0, 0, 0) + #(10.0 * 1e-3, 10.0 * 1e-3, 0.25 * 1e-3, 1.0 * 1e-3, + #100.0 * 1e-3, 0.1 * 1e-3, 0.05 * 1e-3, 0.1 * 1e-3) #TODO: Move this to constants # The empirical min and max of each term in the cost vector, which is used to normalize the values diff --git a/options/simple_intersection/maneuver_base.py b/options/simple_intersection/maneuver_base.py index 01e210d..e43b300 100644 --- a/options/simple_intersection/maneuver_base.py +++ b/options/simple_intersection/maneuver_base.py @@ -30,8 +30,9 @@ class ManeuverBase(EpisodicEnvBase): # as a negative reward, so a cost will be summed up to the reward # with subtraction. # TODO: remove or to provide additional functionality, keep _cost_weights in ManeuverBase here (see other TODOs in simple_intersection_env regarding _cost_weights). - _cost_weights = (10.0 * 1e-3, 10.0 * 1e-3, 0.25 * 1e-3, 1.0 * 1e-3, - 100.0 * 1e-3, 0.1 * 1e-3, 0.05 * 1e-3, 0.1 * 1e-3) + _cost_weights = (0, 0, 0, 0, 0, 0, 0, 0) + #(10.0 * 1e-3, 10.0 * 1e-3, 0.25 * 1e-3, 1.0 * 1e-3, + #100.0 * 1e-3, 0.1 * 1e-3, 0.05 * 1e-3, 0.1 * 1e-3) _extra_r_terminal = None _extra_r_on_timeout = None -- GitLab