-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_experiments.py
27 lines (21 loc) · 1.29 KB
/
run_experiments.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Please make sure that the WSL is installed to run this script.
# In WSL, please make sure that Anaconda is installed with changes to the .bashrc file in
# the wsl home ~ folder as stated in this project's README.
import subprocess
import parse_scenario_womd
import planner
import llm_qa
print("Running the data preprocessing .... \nThe data will be in the parsed_womdr_data dictionary.")
parse_scenario_womd.obtain_and_write_mcq_data(35, 36) # Take these two arguments via argparse or config
print("Completed data preprocessing!\n")
print("Running the PDDL file generation...\nThe domains and problem files will get saved in the apla-planner/generated_pddls_deepseek path within the domains and problems folder.......")
api_type = "ds_api"
model_name = "ds_v3_dsapi" # Take these two arguments via argparse
planner.generate_pddl_with_syntax_check(api_type, model_name)
print("PDDL problem generation has been completed!\n")
print("Running the planner within WSL... \n")
subprocess.run(["wsl", "-e", "bash", "-ic", "cd apla-planner/generated_pddls_deepseek ; python planner_test.py"], stdout=subprocess.PIPE).stdout
print("Plan generation has been completed!\n")
print("Running the LLM evaluations ... \nThe results will be in the grades folder.")
llm_qa.main()
print("LLM evaluations have been completed!")