Skip to content

Commit

Permalink
singleagent_traffic_light_grid (#871)
Browse files Browse the repository at this point in the history
Fix high value of traffic light
  • Loading branch information
lcipolina committed Mar 17, 2020
1 parent 80f3c47 commit 4e47f7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
# time horizon of a single rollout
HORIZON = 200
# number of rollouts per training iteration
N_ROLLOUTS = 20
N_ROLLOUTS = 30
# number of parallel workers
N_CPUS = 2
# set to True if you would like to run the experiment with inflows of vehicles
# from the edges, and False otherwise
USE_INFLOWS = False
USE_INFLOWS = True


def gen_edges(col_num, row_num):
Expand Down
2 changes: 1 addition & 1 deletion flow/envs/traffic_light_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def observation_space(self):
"""
tl_box = Box(
low=0.,
high=1,
high=3,
shape=(3 * 4 * self.num_observed * self.num_traffic_lights +
2 * len(self.k.network.get_edge_list()) +
3 * self.num_traffic_lights,),
Expand Down

0 comments on commit 4e47f7a

Please sign in to comment.