Online Learning of Action Models (OLAM).
Project description
Online Learning of Action Models for PDDL Planning
This repository contains the refactored code of the Online Learning of Action Models (OLAM) algorithm presented at IJCAI 2021, for details about the method please see the paper. The previous code used for the paper experiments is available at this link.
Example Usage
import unified_planning
from unified_planning.io import PDDLReader
from unified_planning.shortcuts import SequentialSimulator
from amlgym.util.util import empty_domain
from olam.OLAM import OLAM
# Disable printing of planning engine credits
unified_planning.shortcuts.get_environment().credits_stream = None
domain_ref_path = "olam/benchmarks/domains/blocksworld.pddl"
problem_path = "olam/benchmarks/problems/blocksworld/1_p00_blocksworld_gen.pddl"
empty_domain_path = empty_domain(domain_ref_path) # remove preconditions/effects
olam = OLAM(empty_domain_path)
sim_problem = PDDLReader().parse_problem(domain_ref_path,
problem_path)
simulator = SequentialSimulator(sim_problem)
learned_domain_str, trajectory = olam.run(simulator, max_steps=100)
print(f"Generated a trajectory with {len(trajectory.observations)} states")
print(f"Domain learned: {learned_domain_str}")
Installation for developers
Clone this repository and install in developer mode:
pip install -e .
Citations
@inproceedings{ijcai2021-566,
title = {Online Learning of Action Models for PDDL Planning},
author = {Lamanna, Leonardo and Saetti, Alessandro and Serafini, Luciano and Gerevini, Alfonso and Traverso, Paolo},
booktitle = {Proceedings of the Thirtieth International Joint Conference on
Artificial Intelligence, {IJCAI-21}},
publisher = {International Joint Conferences on Artificial Intelligence},
pages = {4112--4118},
year = {2021},
doi = {10.24963/ijcai.2021/566},
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
This code has been refactored with the help of Ejdis Gjinika
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file olam-1.0.2.tar.gz.
File metadata
- Download URL: olam-1.0.2.tar.gz
- Upload date:
- Size: 96.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6074ea0313833f8d1281d98018eaeb7c2a656d325a4912142b07308f5389d8e
|
|
| MD5 |
52b57c809fadb2f21f2b9ef3e4e772cd
|
|
| BLAKE2b-256 |
6d9b268f6c92707ba5a6afacb8dc4886c4908ef8a03da1fb9ac164b49465543c
|
File details
Details for the file olam-1.0.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: olam-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 244.2 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac1ee7d07d5b622a803aecca5069ec2bb4e9861c1ca853480ad08266fd0694df
|
|
| MD5 |
ac391d58df28395f10e7b38b57100bb9
|
|
| BLAKE2b-256 |
38d6cec1dcbd48e4939dca65b6b9bd7b8312944143b50704cba4320a43478059
|