3cb05c66aea220019f4ec4fd78193f16e67e4381,flow/envs/base_env.py,SumoEnvironment,apply_lane_change,#SumoEnvironment#Any#Any#Any#,640
Before Change
raise ValueError("A direction or target_lane must be specified.")
for veh_id in veh_ids:
self.prev_last_lc[veh_id] = self.vehicles.get_state(veh_id,
"last_lc")
if self.scenario.lanes == 1:
After Change
self.traci_connection.vehicle.changeLane(
veh_id, int(target_lane[i]), 100000)
self.prev_last_lc[veh_id] = \
self.vehicles.get_state(veh_id, "last_lc")
def choose_routes(self, veh_ids, route_choices):
Updates the route choice of vehicles in the network.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: flow-project/flow
Commit Name: 3cb05c66aea220019f4ec4fd78193f16e67e4381
Time: 2017-12-30
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: SumoEnvironment
Method Name: apply_lane_change
Project Name: ray-project/ray
Commit Name: 7b27ce2b236e29d82e33c5e07645f845d433973c
Time: 2020-03-27
Author: maximsmol@gmail.com
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: get_model
Project Name: tomgoldstein/loss-landscape
Commit Name: 749438fd8b7ffc29e78d042473cb00fda595d937
Time: 2018-12-27
Author: tomg@cs.umd.edu
File Name: dataloader.py
Class Name:
Method Name: load_dataset