MCPcopy Create free account

hub / github.com/LiangZhang1996/Advanced_XLight / functions

Functions176 in github.com/LiangZhang1996/Advanced_XLight

↓ 1 callersFunctionparse_args
()
run_attendlight.py:9
↓ 1 callersFunctionparse_args
()
run_advanced_colight.py:9
↓ 1 callersMethodrun
(self, multi_process=False)
utils/pipeline.py:86
↓ 1 callersMethodsave_network
(self, file_name)
models/colight_agent.py:331
↓ 1 callersMethodset_signal
(self, action, action_pattern, yellow_time, path_to_log)
utils/cityflow_env.py:90
↓ 1 callersFunctionsummary_detail_RL
Used for test RL results
summary.py:27
↓ 1 callersMethodtrain
(self)
utils/oneline.py:39
↓ 1 callersMethodtrain_network
(self)
models/colight_agent.py:294
↓ 1 callersMethodupdate_network
(self, i)
utils/updater.py:95
↓ 1 callersMethodupdate_network_for_agents
(self)
utils/updater.py:100
↓ 1 callersMethodupdate_previous_measurements
(self)
utils/cityflow_env.py:134
↓ 1 callersFunctionupdater_wrapper
(cnt_round, dic_agent_conf, dic_traffic_env_conf, dic_path)
utils/pipeline.py:58
Method__init__
(self, cnt_round, dic_agent_conf, dic_traffic_env_conf, dic_path)
utils/updater.py:11
Method__init__
(self, path_to_samples, cnt_round, dic_traffic_env_conf)
utils/construct_sample.py:28
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path)
utils/pipeline.py:74
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path)
utils/oneline.py:10
Method__init__
(self, cnt_round, cnt_gen, dic_path, dic_agent_conf, dic_traffic_env_conf)
utils/generator.py:9
Method__init__
(self, inter_id, dic_traffic_env_conf, eng, light_id_dict, path_to_log, lanes_length_dict)
utils/cityflow_env.py:13
Method__init__
(self, path_to_log, path_to_work_directory, dic_traffic_env_conf)
utils/cityflow_env.py:476
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path, cnt_round, intersection_id)
models/maxpressure_agent.py:14
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path, cnt_round, intersection_id)
models/advanced_maxpressure_agent.py:12
Method__init__
(self, times, **kwargs)
models/colight_agent.py:339
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path, intersection_id="0")
models/agent.py:2
Method__init__
(self, patience=10)
models/attendlight_agent.py:112
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path, cnt_round, intersection_id="0")
models/network_agent.py:14
Method__init__
(self, times, **kwargs)
models/network_agent.py:243
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path, cnt_round, intersection_id)
models/fixedtime_agent.py:11
Method__init__
(self, dic_agent_conf, dic_traffic_env_conf, dic_path, cnt_round, intersection_id)
models/efficient_maxpressure_agent.py:13
Method_change_lane_vehicle_dic_to_list
(dic_lane_vehicle)
utils/cityflow_env.py:143
Method_update_leave_entering_approach_vehicle
(self)
utils/cityflow_env.py:185
Methodbatch_log
(self, start, stop)
utils/cityflow_env.py:666
Methodbuild
(self, input_shape)
models/network_agent.py:190
Methodbuild_network
(self)
models/simple_dqn_one.py:16
Methodbuild_network
(self)
models/mplight_agent.py:23
Methodbuild_network
(self)
models/presslight_one.py:17
Methodbuild_network
(self)
models/advanced_mplight_agent.py:23
Methodbuild_network
(self)
models/attendlight_agent.py:14
Methodcall
(self, inputs)
models/colight_agent.py:346
Methodcall
(self, x)
models/network_agent.py:194
Methodcall
(self, inputs)
models/network_agent.py:250
Methodchoose_action
choose the best action for current state -input: state:[[state inter1],[state inter1]] -output: act: [#agents,num_actions]
models/simple_dqn_one.py:90
Methodchoose_action
(self, count, states)
models/mplight_agent.py:111
Methodchoose_action
choose the best action for current state -input: state:[[state inter1],[state inter1]] -output: act: [#agents,num_actions]
models/presslight_one.py:116
Methodchoose_action
As described by the definition, use traffic_movement_pressure to calcualte the pressure of each phase.
models/maxpressure_agent.py:43
Methodchoose_action
As described by the definition, use traffic_movement_pressure to calcualte the pressure of each phase.
models/advanced_maxpressure_agent.py:42
Methodchoose_action
choose the best action for current state -input: state:[[state inter1],[state inter1]] -output: act: [#agents,num_actions]
models/colight_agent.py:181
Methodchoose_action
(self, count, states)
models/advanced_mplight_agent.py:103
Methodchoose_action
(self, step_num, states)
models/attendlight_agent.py:90
Methodchoose_action
choose the best action for current state
models/network_agent.py:160
Methodchoose_action
choose the best action for current state
models/fixedtime_agent.py:25
Methodchoose_action
As described by the definition, use traffic_movement_pressure to calcualte the pressure of each phase.
models/efficient_maxpressure_agent.py:42
Methodcompute_output_shape
(self, input_shape)
models/colight_agent.py:343
Methodcompute_output_shape
(self, input_shape)
models/network_agent.py:204
Methodcompute_output_shape
(self, input_shape)
models/network_agent.py:247
Methodconvert_state_to_input
(self, s)
models/mplight_agent.py:99
Methodget_config
(self)
models/colight_agent.py:351
Methodget_config
(self)
models/network_agent.py:255
Methodget_feature
(self)
utils/cityflow_env.py:451
Methodget_reward
(self, dic_reward_info)
utils/cityflow_env.py:462
Methodget_state
(self, list_state_features)
utils/cityflow_env.py:454
Methodload_network_transfer
(self, file_name, file_path=None)
models/network_agent.py:66
Methodprepare_Xs_Y
designed for update simple dqn models
models/simple_dqn_one.py:45
Methodprepare_Xs_Y
designed for update simple dqn models
models/presslight_one.py:71
Methodprepare_Xs_Y
memory: [slice_data, slice_data, ..., slice_data] prepare memory for training
models/colight_agent.py:203
Methodprepare_Xs_Y
(self, memory)
models/advanced_mplight_agent.py:126
Methodprepare_Xs_Y
(self, memory)
models/attendlight_agent.py:49
Methodprepare_Xs_Y
(self, memory)
models/network_agent.py:102
Functionrelation
(x, phase_list)
models/network_agent.py:217
Methodsave_network
(self, file_name)
models/network_agent.py:79
Methodsave_network_bar
(self, file_name)
models/colight_agent.py:334
Methodsave_network_bar
(self, file_name)
models/network_agent.py:82
Functionslice_tensor
(x, index)
models/network_agent.py:209
Methodstep
the loss is mse errors,
models/attendlight_agent.py:118
Functionsummary_detail_conventional
Used for test conventional results.
summary.py:114
Functiontest
(model_dir, cnt_round, run_cnt, _dic_traffic_env_conf)
utils/model_test.py:9
Methodtrain_network
(self)
models/network_agent.py:170
← previous101–176 of 176, ranked by callers