Skip to main content

Action Model Learning from Noisy Traces: a Probabilistic Approach.

Project description

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.

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

offlam-1.0.0.tar.gz (34.4 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.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: offlam-1.0.0.tar.gz
  • Upload date:
  • Size: 34.4 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.0.tar.gz
Algorithm Hash digest
SHA256 1651574ccdfb9ed5704674514bc8e61b4d6009925f2d271998fe5a24e98d3c37
MD5 11d04b2de4d6f5772ac9dd249e86d527
BLAKE2b-256 d4a168c4b138a81b21bf5f5336eb81124af20bd69fd3528ddc1ffbf73c38f5a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: offlam-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 36.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b14e9c782cf09539f67a0496cccf818c3ae33369ad1dd4e6a686567150ffee1
MD5 e91d7c54ac2d1070909aa391bf861651
BLAKE2b-256 25ff74ef2568637e341022ad6487e135daf2bcd43d0bf91c36cf87dfa7e8ccac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page