├── .gitignore ├── ConventionalMethods ├── fix_time.py └── sotl.py ├── LICENSE ├── README.md ├── TSCAgent ├── __init__.py ├── callback_handler.py ├── custom_tools.py ├── output_parse.py ├── tsc_agent.py └── tsc_agent_prompt.py ├── TSCEnvironment ├── __init__.py ├── base_tsc_wrapper.py ├── llm_rl_wrapper.py ├── llm_wrapper.py ├── tsc_env.py ├── tsc_env_wrapper.py └── wrapper_utils.py ├── TSCPrompt ├── base_prompt.py ├── llm_prompt.py └── llm_rl_prompt.py ├── TSCRL ├── __init__.py ├── check_tsc_env.py ├── eval_rl_agent.py ├── plot_rewards.py ├── result │ ├── 3way │ │ ├── choose_next_phase │ │ │ ├── log │ │ │ │ ├── 0.monitor.csv │ │ │ │ ├── 1.monitor.csv │ │ │ │ ├── 2.monitor.csv │ │ │ │ ├── 3.monitor.csv │ │ │ │ ├── 4.monitor.csv │ │ │ │ └── 5.monitor.csv │ │ │ ├── models │ │ │ │ ├── last_rl_model.zip │ │ │ │ ├── last_vec_normalize.pkl │ │ │ │ ├── rl_model_60000_steps.zip │ │ │ │ └── vec_normalize_60000_steps.pkl │ │ │ └── tensorboard │ │ │ │ └── J1_1 │ │ │ │ └── events.out.tfevents.1701151463.WMNPower.687132.0 │ │ └── next_or_not │ │ │ ├── log │ │ │ ├── 0.monitor.csv │ │ │ ├── 1.monitor.csv │ │ │ ├── 2.monitor.csv │ │ │ ├── 3.monitor.csv │ │ │ ├── 4.monitor.csv │ │ │ └── 5.monitor.csv │ │ │ ├── models │ │ │ ├── last_rl_model.zip │ │ │ ├── last_vec_normalize.pkl │ │ │ ├── rl_model_60000_steps.zip │ │ │ └── vec_normalize_60000_steps.pkl │ │ │ └── tensorboard │ │ │ └── J1_1 │ │ │ └── events.out.tfevents.1701099470.WMNPower.248759.0 │ └── 4way │ │ ├── choose_next_phase │ │ ├── log │ │ │ ├── 0.monitor.csv │ │ │ ├── 1.monitor.csv │ │ │ ├── 2.monitor.csv │ │ │ ├── 3.monitor.csv │ │ │ ├── 4.monitor.csv │ │ │ └── 5.monitor.csv │ │ ├── models │ │ │ ├── last_rl_model.zip │ │ │ ├── last_vec_normalize.pkl │ │ │ ├── rl_model_60000_steps.zip │ │ │ └── vec_normalize_60000_steps.pkl │ │ └── tensorboard │ │ │ └── J1_1 │ │ │ └── events.out.tfevents.1701149239.WMNPower.647201.0 │ │ └── next_or_not │ │ ├── log │ │ ├── 0.monitor.csv │ │ ├── 1.monitor.csv │ │ ├── 2.monitor.csv │ │ ├── 3.monitor.csv │ │ ├── 4.monitor.csv │ │ └── 5.monitor.csv │ │ ├── models │ │ ├── last_rl_model.zip │ │ ├── last_vec_normalize.pkl │ │ ├── rl_model_60000_steps.zip │ │ └── vec_normalize_60000_steps.pkl │ │ └── tensorboard │ │ └── J1_1 │ │ └── events.out.tfevents.1701097598.WMNPower.212544.0 ├── rl_utils │ ├── __init__.py │ ├── custom_model.py │ ├── make_tsc_env.py │ └── sb3_utils.py └── sb3_ppo.py ├── TSCScenario ├── 3way │ ├── add │ │ ├── e2.add.xml │ │ └── tls.add.xml │ ├── env │ │ ├── 3way.net.xml │ │ ├── vehicle.sumocfg │ │ └── vehicle_pedestrian.sumocfg │ ├── generate_route.py │ ├── generate_tls_additions.py │ ├── generate_tls_detectors.py │ └── routes │ │ ├── pedestrian.rou.xml │ │ └── vehicle.rou.xml └── 4way │ ├── add │ ├── e2.add.xml │ └── tls.add.xml │ ├── env │ ├── 4way.net.xml │ ├── vehicle.sumocfg │ └── vehicle_pedestrian.sumocfg │ ├── generate_route.py │ ├── generate_tls_additions.py │ ├── generate_tls_detectors.py │ └── routes │ ├── pedestrian.rou.xml │ └── vehicle.rou.xml ├── __init__.py ├── assets └── framework.png ├── check_tsc_scenario.py ├── exp_results └── parse_trip_info.py ├── llm.py ├── llm_react.py ├── llm_rl.py ├── read_sqlite_data.py ├── sqlite_test.py ├── test ├── check_langchain.py └── check_tsc_scenario.py └── utils ├── __init__.py ├── convert_sql2description.py ├── euclidean_distance.py ├── junction_similarity.py └── readConfig.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/.gitignore -------------------------------------------------------------------------------- /ConventionalMethods/fix_time.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/ConventionalMethods/fix_time.py -------------------------------------------------------------------------------- /ConventionalMethods/sotl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/ConventionalMethods/sotl.py -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/README.md -------------------------------------------------------------------------------- /TSCAgent/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCAgent/__init__.py -------------------------------------------------------------------------------- /TSCAgent/callback_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCAgent/callback_handler.py -------------------------------------------------------------------------------- /TSCAgent/custom_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCAgent/custom_tools.py -------------------------------------------------------------------------------- /TSCAgent/output_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCAgent/output_parse.py -------------------------------------------------------------------------------- /TSCAgent/tsc_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCAgent/tsc_agent.py -------------------------------------------------------------------------------- /TSCAgent/tsc_agent_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCAgent/tsc_agent_prompt.py -------------------------------------------------------------------------------- /TSCEnvironment/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/__init__.py -------------------------------------------------------------------------------- /TSCEnvironment/base_tsc_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/base_tsc_wrapper.py -------------------------------------------------------------------------------- /TSCEnvironment/llm_rl_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/llm_rl_wrapper.py -------------------------------------------------------------------------------- /TSCEnvironment/llm_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/llm_wrapper.py -------------------------------------------------------------------------------- /TSCEnvironment/tsc_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/tsc_env.py -------------------------------------------------------------------------------- /TSCEnvironment/tsc_env_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/tsc_env_wrapper.py -------------------------------------------------------------------------------- /TSCEnvironment/wrapper_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCEnvironment/wrapper_utils.py -------------------------------------------------------------------------------- /TSCPrompt/base_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCPrompt/base_prompt.py -------------------------------------------------------------------------------- /TSCPrompt/llm_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCPrompt/llm_prompt.py -------------------------------------------------------------------------------- /TSCPrompt/llm_rl_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCPrompt/llm_rl_prompt.py -------------------------------------------------------------------------------- /TSCRL/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/__init__.py -------------------------------------------------------------------------------- /TSCRL/check_tsc_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/check_tsc_env.py -------------------------------------------------------------------------------- /TSCRL/eval_rl_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/eval_rl_agent.py -------------------------------------------------------------------------------- /TSCRL/plot_rewards.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/plot_rewards.py -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/log/0.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/log/0.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/log/1.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/log/1.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/log/2.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/log/2.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/log/3.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/log/3.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/log/4.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/log/4.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/log/5.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/log/5.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/models/last_rl_model.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/models/last_rl_model.zip -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/models/last_vec_normalize.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/models/last_vec_normalize.pkl -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/models/rl_model_60000_steps.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/models/rl_model_60000_steps.zip -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/models/vec_normalize_60000_steps.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/models/vec_normalize_60000_steps.pkl -------------------------------------------------------------------------------- /TSCRL/result/3way/choose_next_phase/tensorboard/J1_1/events.out.tfevents.1701151463.WMNPower.687132.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/choose_next_phase/tensorboard/J1_1/events.out.tfevents.1701151463.WMNPower.687132.0 -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/log/0.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/log/0.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/log/1.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/log/1.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/log/2.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/log/2.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/log/3.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/log/3.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/log/4.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/log/4.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/log/5.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/log/5.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/models/last_rl_model.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/models/last_rl_model.zip -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/models/last_vec_normalize.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/models/last_vec_normalize.pkl -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/models/rl_model_60000_steps.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/models/rl_model_60000_steps.zip -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/models/vec_normalize_60000_steps.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/models/vec_normalize_60000_steps.pkl -------------------------------------------------------------------------------- /TSCRL/result/3way/next_or_not/tensorboard/J1_1/events.out.tfevents.1701099470.WMNPower.248759.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/3way/next_or_not/tensorboard/J1_1/events.out.tfevents.1701099470.WMNPower.248759.0 -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/log/0.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/log/0.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/log/1.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/log/1.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/log/2.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/log/2.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/log/3.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/log/3.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/log/4.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/log/4.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/log/5.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/log/5.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/models/last_rl_model.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/models/last_rl_model.zip -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/models/last_vec_normalize.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/models/last_vec_normalize.pkl -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/models/rl_model_60000_steps.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/models/rl_model_60000_steps.zip -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/models/vec_normalize_60000_steps.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/models/vec_normalize_60000_steps.pkl -------------------------------------------------------------------------------- /TSCRL/result/4way/choose_next_phase/tensorboard/J1_1/events.out.tfevents.1701149239.WMNPower.647201.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/choose_next_phase/tensorboard/J1_1/events.out.tfevents.1701149239.WMNPower.647201.0 -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/log/0.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/log/0.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/log/1.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/log/1.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/log/2.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/log/2.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/log/3.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/log/3.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/log/4.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/log/4.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/log/5.monitor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/log/5.monitor.csv -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/models/last_rl_model.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/models/last_rl_model.zip -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/models/last_vec_normalize.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/models/last_vec_normalize.pkl -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/models/rl_model_60000_steps.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/models/rl_model_60000_steps.zip -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/models/vec_normalize_60000_steps.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/models/vec_normalize_60000_steps.pkl -------------------------------------------------------------------------------- /TSCRL/result/4way/next_or_not/tensorboard/J1_1/events.out.tfevents.1701097598.WMNPower.212544.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/result/4way/next_or_not/tensorboard/J1_1/events.out.tfevents.1701097598.WMNPower.212544.0 -------------------------------------------------------------------------------- /TSCRL/rl_utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/rl_utils/__init__.py -------------------------------------------------------------------------------- /TSCRL/rl_utils/custom_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/rl_utils/custom_model.py -------------------------------------------------------------------------------- /TSCRL/rl_utils/make_tsc_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/rl_utils/make_tsc_env.py -------------------------------------------------------------------------------- /TSCRL/rl_utils/sb3_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/rl_utils/sb3_utils.py -------------------------------------------------------------------------------- /TSCRL/sb3_ppo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCRL/sb3_ppo.py -------------------------------------------------------------------------------- /TSCScenario/3way/add/e2.add.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/add/e2.add.xml -------------------------------------------------------------------------------- /TSCScenario/3way/add/tls.add.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/add/tls.add.xml -------------------------------------------------------------------------------- /TSCScenario/3way/env/3way.net.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/env/3way.net.xml -------------------------------------------------------------------------------- /TSCScenario/3way/env/vehicle.sumocfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/env/vehicle.sumocfg -------------------------------------------------------------------------------- /TSCScenario/3way/env/vehicle_pedestrian.sumocfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/env/vehicle_pedestrian.sumocfg -------------------------------------------------------------------------------- /TSCScenario/3way/generate_route.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/generate_route.py -------------------------------------------------------------------------------- /TSCScenario/3way/generate_tls_additions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/generate_tls_additions.py -------------------------------------------------------------------------------- /TSCScenario/3way/generate_tls_detectors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/generate_tls_detectors.py -------------------------------------------------------------------------------- /TSCScenario/3way/routes/pedestrian.rou.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/routes/pedestrian.rou.xml -------------------------------------------------------------------------------- /TSCScenario/3way/routes/vehicle.rou.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/3way/routes/vehicle.rou.xml -------------------------------------------------------------------------------- /TSCScenario/4way/add/e2.add.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/add/e2.add.xml -------------------------------------------------------------------------------- /TSCScenario/4way/add/tls.add.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/add/tls.add.xml -------------------------------------------------------------------------------- /TSCScenario/4way/env/4way.net.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/env/4way.net.xml -------------------------------------------------------------------------------- /TSCScenario/4way/env/vehicle.sumocfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/env/vehicle.sumocfg -------------------------------------------------------------------------------- /TSCScenario/4way/env/vehicle_pedestrian.sumocfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/env/vehicle_pedestrian.sumocfg -------------------------------------------------------------------------------- /TSCScenario/4way/generate_route.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/generate_route.py -------------------------------------------------------------------------------- /TSCScenario/4way/generate_tls_additions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/generate_tls_additions.py -------------------------------------------------------------------------------- /TSCScenario/4way/generate_tls_detectors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/generate_tls_detectors.py -------------------------------------------------------------------------------- /TSCScenario/4way/routes/pedestrian.rou.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/routes/pedestrian.rou.xml -------------------------------------------------------------------------------- /TSCScenario/4way/routes/vehicle.rou.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/TSCScenario/4way/routes/vehicle.rou.xml -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/__init__.py -------------------------------------------------------------------------------- /assets/framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/assets/framework.png -------------------------------------------------------------------------------- /check_tsc_scenario.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/check_tsc_scenario.py -------------------------------------------------------------------------------- /exp_results/parse_trip_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/exp_results/parse_trip_info.py -------------------------------------------------------------------------------- /llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/llm.py -------------------------------------------------------------------------------- /llm_react.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/llm_react.py -------------------------------------------------------------------------------- /llm_rl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/llm_rl.py -------------------------------------------------------------------------------- /read_sqlite_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/read_sqlite_data.py -------------------------------------------------------------------------------- /sqlite_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/sqlite_test.py -------------------------------------------------------------------------------- /test/check_langchain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/test/check_langchain.py -------------------------------------------------------------------------------- /test/check_tsc_scenario.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/test/check_tsc_scenario.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/convert_sql2description.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/utils/convert_sql2description.py -------------------------------------------------------------------------------- /utils/euclidean_distance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/utils/euclidean_distance.py -------------------------------------------------------------------------------- /utils/junction_similarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/utils/junction_similarity.py -------------------------------------------------------------------------------- /utils/readConfig.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Traffic-Alpha/LLM-Assisted-Light/HEAD/utils/readConfig.py --------------------------------------------------------------------------------