Lifted Action Models Learning from Partial Traces
This repository contains the official code of the Offline Learning of Action Models (OffLAM) algorithm.
Installation
pip install offlam
Example usage
from offlam.algorithm import learn
model = learn('path/to/domain.pddl', ['path/to/trace0', 'path/to/trace1'])
print(model)
Custom domain learning
The OffLAM algorithm can be run for learning from traces with partially observable states, partially observable actions,
and partially observable states and actions.
For running OffLAM on a custom domain, you need to provide an input domain file 'path/to/domain.pddl' and a
list of plan trace files ['path/to/trace0', 'path/to/trace1', etc.].
The input planning domain must contain the predicates, object types, and operator signatures,
an example of (empty) input planning domain is Analysis/Benchmarks/testworld.pddl.
Examples of input plan traces with partial states can be found in the directory
offlam/Analysis/Input traces/testworld/partial_states, notice that OffLAM can learn a planning domain from
plan traces of different environments (e.g. it is possible to learn a planning domain from small environments
and exploit the learned domain in large environments).
Citations
@article{lamanna2024lifted,
title={Lifted Action Models Learning from Partial Traces},
author={Lamanna, Leonardo and Serafini, Luciano and Saetti, Alessandro and Gerevini, Alfonso and Traverso, Paolo},
journal={Artificial Intelligence},
volume={339},
pages={104256},
year={2025},
publisher={Elsevier}
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for offlam 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| offlam-1.0.1.tar.gz | 702.5 kB | Without provenance | Details for offlam-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| offlam-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for offlam-1.0.1-py3-none-any.whl |
Total release size: 1.4 MB
Release files / offlam-1.0.1.tar.gz
| Download URL | offlam-1.0.1.tar.gz |
|---|---|
| Size | 702.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
508dc434001c9603da4c7bade24b03193e7cad70b525580424a7cbacd82716c6
|
|
BLAKE2b-256 checksum How to use checksums |
19a30fcd44bc7920ba6132b88facb4019eaf11a05be8c73bd2cbcd9e03941a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Release files / offlam-1.0.1-py3-none-any.whl
| Download URL | offlam-1.0.1-py3-none-any.whl |
|---|---|
| Size | 710.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b2ba639f47f67b75f88786187b2b4fc3f71f988a5453ddd62a495f602c084cd
|
|
BLAKE2b-256 checksum How to use checksums |
c5a50f5e9457fd84826cc6df404626c1a3293e4309fc1c35137af813beeca056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Security for offlam 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.