MCPcopy Create free account

hub / github.com/LiangZhang1996/Advanced_XLight / functions

Functions176 in github.com/LiangZhang1996/Advanced_XLight

↓ 21 callersFunctionmerge
(dic_tmp, dic_to_change)
utils/utils.py:10
↓ 8 callersFunctionpipeline_wrapper
(dic_agent_conf, dic_traffic_env_conf, dic_path)
utils/utils.py:16
↓ 6 callersMethodget_current_time
(self)
utils/cityflow_env.py:643
↓ 5 callersMethodchoose_action
(self)
models/agent.py:8
↓ 5 callersMethodget_current_time
(self)
utils/cityflow_env.py:445
↓ 4 callersMethod_get_traffic_movement_pressure_general
Created by LiangZhang Calculate pressure with entering and exiting vehicles only for 3 x 3 lanes intersection
utils/cityflow_env.py:294
↓ 4 callersFunctiononeline_wrapper
(dic_agent_conf, dic_traffic_env_conf, dic_path)
utils/utils.py:27
↓ 3 callersMethodconstruct_state
(self, features, time, i)
utils/construct_sample.py:64
↓ 3 callersMethodload_network_bar
(self, file_name, file_path=None)
models/colight_agent.py:323
↓ 3 callersMethodload_network_bar
(self, file_name, file_path=None)
models/network_agent.py:72
↓ 3 callersMethodload_sample_with_forget
(self, i)
utils/updater.py:30
↓ 3 callersMethodprepare_Xs_Y
(self, memory)
models/mplight_agent.py:134
↓ 3 callersMethodreset
(self)
utils/cityflow_env.py:503
↓ 3 callersMethodstep
(self, action)
utils/cityflow_env.py:563
↓ 2 callersMethodMultiHeadsAttModel
input: [batch, agent, dim] feature [batch, agent, nei, agent] adjacency input:[bacth,agent,128] output:
models/colight_agent.py:96
↓ 2 callersMethod__init__
(self, select, d_phase_encoding, d_action, **kwargs)
models/network_agent.py:183
↓ 2 callersMethod_concat_list
(ls)
models/colight_agent.py:197
↓ 2 callersMethod_get_lane_queue_length
queue length for each lane
utils/cityflow_env.py:426
↓ 2 callersMethod_get_traffic_movement_pressure_efficient
Created by LiangZhang Calculate pressure with entering and exiting vehicles only for 3 x 3 lanes intersection
utils/cityflow_env.py:316
↓ 2 callersMethodadjacency_index2matrix
(self, adjacency_index)
models/colight_agent.py:147
↓ 2 callersMethodbatch_log_2
Used for model test, only log the vehicle_inter_.csv
utils/cityflow_env.py:653
↓ 2 callersFunctioncal_reward
(rs, rewards_components)
utils/construct_sample.py:13
↓ 2 callersFunctioncopy_cityflow_file
(dic_path, dic_traffic_env_conf, path=None)
utils/pipeline.py:36
↓ 2 callersFunctioncopy_conf_file
(dic_path, dic_agent_conf, dic_traffic_env_conf, path=None)
utils/pipeline.py:29
↓ 2 callersMethodend_cityflow
()
utils/cityflow_env.py:769
↓ 2 callersMethodget_dic_vehicle_arrive_leave_time
(self)
utils/cityflow_env.py:448
↓ 2 callersFunctionget_reward_from_features
(rs)
utils/construct_sample.py:7
↓ 2 callersMethodget_state
(self)
utils/cityflow_env.py:634
↓ 2 callersMethodload_network
(self, file_name, file_path=None)
models/colight_agent.py:314
↓ 2 callersMethodload_network
(self, file_name, file_path=None)
models/network_agent.py:60
↓ 2 callersFunctionpath_check
(dic_path)
utils/pipeline.py:12
↓ 2 callersMethodupdate_current_measurements
(self, simulator_state)
utils/cityflow_env.py:142
↓ 1 callersMethodMLP
Currently, the MLP layer -input: [batch,#agents,dim] -outpout: [batch,#agents,dim]
models/colight_agent.py:78
↓ 1 callersMethod__init__
(self, dic_agent_conf=None, dic_traffic_env_conf=None, dic_path=None, cnt_round=None, interse
models/colight_agent.py:25
↓ 1 callersMethod_adjacency_extraction
(self)
utils/cityflow_env.py:702
↓ 1 callersMethod_cal_distance
(loc_dict1, loc_dict2)
utils/cityflow_env.py:763
↓ 1 callersMethod_cal_len_feature
(self)
models/colight_agent.py:67
↓ 1 callersMethod_get_adjacency_row
(self)
utils/cityflow_env.py:459
↓ 1 callersMethod_get_lane_num_vehicle_downstream
vehicle number for each lane, exiting
utils/cityflow_env.py:438
↓ 1 callersMethod_get_lane_num_vehicle_entring
vehicle number for each lane
utils/cityflow_env.py:432
↓ 1 callersMethod_get_part_observations
Input: lane_vehicles : Dict{lane_id : [vehicle_ids]} vehicle_distance: Dict{vehicle_id : float(dist)}
utils/cityflow_env.py:373
↓ 1 callersMethod_get_part_traffic_movement_features
return: part_traffic_movement_pressure_num: both the end and the beginning of the lane part_patrric_movement_pressure_que
utils/cityflow_env.py:337
↓ 1 callersMethod_get_pressure
(self)
utils/cityflow_env.py:422
↓ 1 callersMethod_get_several_segments_attend
(self, lane_vehicles, vehicle_distance, vehicle_speed, lane_length,
utils/cityflow_env.py:272
↓ 1 callersMethod_inner_step
(self, action)
utils/cityflow_env.py:603
↓ 1 callersMethod_orgnize_several_segments_attend
(self, queue_in, queue_out)
utils/cityflow_env.py:252
↓ 1 callersMethod_separate_network_structure
(state_features, dense_d, num_actions, memo="")
models/presslight_one.py:65
↓ 1 callersMethod_update_arrive_time
(self, list_vehicle_arrive)
utils/cityflow_env.py:203
↓ 1 callersMethod_update_feature
(self)
utils/cityflow_env.py:220
↓ 1 callersMethod_update_left_time
(self, list_vehicle_left)
utils/cityflow_env.py:210
↓ 1 callersFunctionbuild_memory
()
models/colight_agent.py:20
↓ 1 callersMethodbuild_memory
()
models/network_agent.py:89
↓ 1 callersMethodbuild_network
(self, MLP_layers=[32, 32])
models/colight_agent.py:248
↓ 1 callersMethodbuild_network
(self)
models/network_agent.py:85
↓ 1 callersMethodbuild_network_from_copy
Initialize a Q network from a copy
models/colight_agent.py:303
↓ 1 callersMethodbuild_network_from_copy
Initialize a Q network from a copy
models/network_agent.py:92
↓ 1 callersMethodbulk_log_multi_process
(self, batch_size=100)
utils/cityflow_env.py:681
↓ 1 callersMethodconstruct_reward
(self, rewards_components, time, i)
utils/construct_sample.py:79
↓ 1 callersMethodconvert_state_to_input
s: [state1, state2, ..., staten]
models/colight_agent.py:153
↓ 1 callersMethodconvert_state_to_input
(self, s)
models/network_agent.py:148
↓ 1 callersMethoddump_sample
(self, samples, folder)
utils/construct_sample.py:149
↓ 1 callersMethodepsilon_choice
(self, q_values)
models/attendlight_agent.py:102
↓ 1 callersMethodgenerate
(self)
utils/generator.py:40
↓ 1 callersFunctiongenerator_wrapper
(cnt_round, cnt_gen, dic_path, dic_agent_conf, dic_traffic_env_conf)
utils/pipeline.py:45
↓ 1 callersMethodget_config
(self)
models/network_agent.py:199
↓ 1 callersMethodget_feature
(self)
utils/cityflow_env.py:630
↓ 1 callersMethodget_lane_length
newly added part for get lane length Read the road net file Return: dict{lanes} normalized with the min lane length
utils/cityflow_env.py:772
↓ 1 callersFunctionget_metrics
(duration_list, traffic_name, total_summary_metrics, num_of_out)
summary.py:9
↓ 1 callersMethodget_reward
(self)
utils/cityflow_env.py:639
↓ 1 callersMethodinitialize
(self)
utils/pipeline.py:81
↓ 1 callersMethodinitialize
(self)
utils/oneline.py:18
↓ 1 callersMethodjudge_action
(self, time, i)
utils/construct_sample.py:96
↓ 1 callersMethodload_data
(self, folder, i)
utils/construct_sample.py:42
↓ 1 callersMethodload_data_for_system
(self, folder)
utils/construct_sample.py:54
↓ 1 callersMethodload_sample_for_agents
(self)
utils/updater.py:73
↓ 1 callersMethodlog
(self, cur_time, before_action_feature, action)
utils/cityflow_env.py:646
↓ 1 callersFunctionmain
(in_args)
run_fixedtime.py:24
↓ 1 callersFunctionmain
(in_args)
run_advanced_maxpressure.py:21
↓ 1 callersFunctionmain
(in_args=None)
run_mplight.py:22
↓ 1 callersFunctionmain
(in_args)
run_maxpressure.py:21
↓ 1 callersFunctionmain
(in_args=None)
run_efficient_presslight.py:22
↓ 1 callersFunctionmain
(in_args=None)
run_efficient_colight.py:22
↓ 1 callersFunctionmain
(in_args=None)
run_colight.py:22
↓ 1 callersFunctionmain
(in_args)
run_efficient_maxpressure.py:21
↓ 1 callersFunctionmain
(in_args=None)
run_advanced_mplight.py:22
↓ 1 callersFunctionmain
(in_args=None)
run_efficient_mplight.py:22
↓ 1 callersFunctionmain
(in_args=None)
run_attendlight.py:22
↓ 1 callersFunctionmain
(in_args=None)
run_advanced_colight.py:22
↓ 1 callersMethodmake_reward
(self, folder, i)
utils/construct_sample.py:102
↓ 1 callersMethodmake_reward_for_system
(self)
utils/construct_sample.py:134
↓ 1 callersFunctionparse_args
()
run_fixedtime.py:12
↓ 1 callersFunctionparse_args
()
run_advanced_maxpressure.py:8
↓ 1 callersFunctionparse_args
()
run_mplight.py:9
↓ 1 callersFunctionparse_args
()
run_maxpressure.py:8
↓ 1 callersFunctionparse_args
()
run_efficient_presslight.py:9
↓ 1 callersFunctionparse_args
()
run_efficient_colight.py:9
↓ 1 callersFunctionparse_args
()
run_colight.py:9
↓ 1 callersFunctionparse_args
()
run_efficient_maxpressure.py:8
↓ 1 callersFunctionparse_args
()
run_advanced_mplight.py:9
↓ 1 callersFunctionparse_args
()
run_efficient_mplight.py:9
next →1–100 of 176, ranked by callers