0eaf06ba5f25233f0c79b13fe57411ece5e939b8,flow/envs/loop_accel.py,AccelEnv,compute_reward,#AccelEnv#Any#Any#,57
Before Change
See parent class
// reward desired velocity
reward = rewards.desired_velocity(self, fail=kwargs["fail"])
return reward
def get_state(self, **kwargs):
See parent class
After Change
self.apply_acceleration(sorted_rl_ids, rl_actions)
def compute_reward(self, state, rl_actions, **kwargs):
return rewards.desired_velocity(self, fail=kwargs["fail"])
def get_state(self, **kwargs):
scaled_pos = [self.vehicles.get_absolute_position(veh_id) /
self.scenario.length for veh_id in self.sorted_ids]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: flow-project/flow
Commit Name: 0eaf06ba5f25233f0c79b13fe57411ece5e939b8
Time: 2018-02-20
Author: akreidieh@gmail.com
File Name: flow/envs/loop_accel.py
Class Name: AccelEnv
Method Name: compute_reward
Project Name: flow-project/flow
Commit Name: 58937b650681e315064114f22e9586019851b521
Time: 2017-08-19
Author: akreidieh@gmail.com
File Name: cistar_dev/cistar_dev/envs/braess_paradox.py
Class Name: BraessParadoxEnvironment
Method Name: compute_reward
Project Name: flow-project/flow
Commit Name: 4f2e824895fba1d3600098ef2a066279f3ee91a5
Time: 2017-07-20
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: compute_reward
Project Name: flow-project/flow
Commit Name: 434a7d6dccae2b5d9cf1242d950c195aa176554f
Time: 2017-07-17
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/envs/loop_accel.py
Class Name: SimpleAccelerationEnvironment
Method Name: compute_reward