b45feb97fad98b628e9be476821a329a6cf68327,flow/envs/loop/lane_changing.py,LaneChangeAccelEnv,get_state,#LaneChangeAccelEnv#,101

Before Change


        return reward

    def get_state(self):
        return np.array([[self.vehicles.get_speed(veh_id),
                          self.vehicles.get_absolute_position(veh_id),
                          self.vehicles.get_lane(veh_id)]
                         for veh_id in self.sorted_ids])

After Change



    def get_state(self):
        // normalizers
        max_speed = 30
        length = self.scenario.length

        return np.array([[self.vehicles.get_speed(veh_id) / max_speed,
                          self.vehicles.get_absolute_position(veh_id) / length,
                          self.vehicles.get_lane(veh_id)]
                         for veh_id in self.sorted_ids])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: flow-project/flow
Commit Name: b45feb97fad98b628e9be476821a329a6cf68327
Time: 2018-04-23
Author: akreidieh@gmail.com
File Name: flow/envs/loop/lane_changing.py
Class Name: LaneChangeAccelEnv
Method Name: get_state


Project Name: flow-project/flow
Commit Name: b45feb97fad98b628e9be476821a329a6cf68327
Time: 2018-04-23
Author: akreidieh@gmail.com
File Name: flow/envs/loop/lane_changing.py
Class Name: LaneChangeAccelPOEnv
Method Name: get_state


Project Name: flow-project/flow
Commit Name: fcfafff3eb05887529fd4b85a21b3d1c913c3062
Time: 2017-09-25
Author: eugenevinitsky@airbears2-10-142-38-22.airbears2.1918.berkeley.edu
File Name: cistar/envs/two_intersection.py
Class Name: TwoIntersectionEnvironment
Method Name: get_state