Skip to main content

Lifted Action Models Learning from Partial Traces

License: MIT

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

offlam-1.0.1.tar.gz (702.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

offlam-1.0.1-py3-none-any.whl (710.1 kB view details)

Uploaded Python 3

File details

Details for the file offlam-1.0.1.tar.gz.

File metadata

  • Download URL: offlam-1.0.1.tar.gz
  • Upload date:
  • Size: 702.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for offlam-1.0.1.tar.gz
Algorithm Hash digest
SHA256 508dc434001c9603da4c7bade24b03193e7cad70b525580424a7cbacd82716c6
MD5 72ba18778fe272c89dcaec1b4ebabdf2
BLAKE2b-256 19a30fcd44bc7920ba6132b88facb4019eaf11a05be8c73bd2cbcd9e03941a6b

See more details on using hashes here.

File details

Details for the file offlam-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: offlam-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 710.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for offlam-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b2ba639f47f67b75f88786187b2b4fc3f71f988a5453ddd62a495f602c084cd
MD5 5d457ceade1d1064037a509d7478194b
BLAKE2b-256 c5a50f5e9457fd84826cc6df404626c1a3293e4309fc1c35137af813beeca056

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page