93a7f518a7eefd0d5492f8c77b253d7f40af3b4f,cistar-dev/cistar/envs/lane_changing.py,SimpleLaneChangingAccelerationEnvironment,apply_rl_actions,#SimpleLaneChangingAccelerationEnvironment#Any#,88

Before Change


        // self.rl_ids = np.array(self.rl_ids)

        self.apply_acceleration(self.rl_ids, acc=acceleration)
        self.apply_lane_change(np.array(self.rl_ids)[lane_changing_veh], direction=direction[lane_changing_veh])

        resulting_behaviors = []

After Change


        // direction = np.array(actions[:-1]) - 1
        
        acceleration = actions[::2]
        direction = np.round(actions[1::2])

        // represents vehicles that are allowed to change lanes
        non_lane_changing_veh = [self.timer <= self.lane_change_duration + self.vehicles[veh_id]["last_lc"]
                                 for veh_id in self.rl_ids]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: flow-project/flow
Commit Name: 93a7f518a7eefd0d5492f8c77b253d7f40af3b4f
Time: 2017-06-10
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: apply_rl_actions


Project Name: flow-project/flow
Commit Name: 80dad993646d040f10f03bfa4b971cd16502fca3
Time: 2017-06-14
Author: eugenevinitsky@airbears2-10-142-39-100.airbears2.1918.berkeley.edu
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: apply_rl_actions


Project Name: mne-tools/mne-python
Commit Name: beaff02d91a80c2cf12e626d47b3f1678188472d
Time: 2020-04-22
Author: larson.eric.d@gmail.com
File Name: mne/source_space.py
Class Name:
Method Name: _get_volume_label_mask