1. Benchmark domains and trajectories
AMLGym provides several benchmark domains from previous Internaional Planning Competitions (IPCs).
[ ]:
!pip install amlgym
[ ]:
from amlgym.benchmarks import print_domains
print_domains()
The PDDL model of each domain can be inspected:
[ ]:
from amlgym.benchmarks import get_domain_path
domain_path = get_domain_path('blocksworld')
print(domain_path)
[ ]:
from amlgym.benchmarks import get_domain
domain_pddl = get_domain('blocksworld')
print(domain_pddl)
A set of 10 trajectories is provided for each domain:
[ ]:
from amlgym.benchmarks import get_trajectories_path
from pprint import pprint
trajectory_paths = get_trajectories_path('blocksworld')
pprint(trajectory_paths)
An example of trajectory for the blocksworld domain is:
[ ]:
from amlgym.benchmarks import get_trajectories
trajectory_idx = 0
trajectory = get_trajectories('blocksworld')[trajectory_idx]
print(trajectory)
[ ]:
from amlgym.benchmarks import get_problems_path
problem_paths = get_problems_path('blocksworld')[trajectory_idx]
print(problem_paths)