Skip to main content

AMLGym: benchmarking action model learning

Framework for experimenting with action model learning approaches and evaluating the learned domain models.

Installation

pip install amlgym

Example usage

from amlgym.algorithms import get_algorithm
agent = get_algorithm('OffLAM')
model = agent.learn('path/to/domain.pddl', ['path/to/trace0', 'path/to/trace1'])
print(model)

Documentation

Tutorials and API documentation is accessible on Read the Docs

State-of-the-art Algorithms

AMLGym provides seamless integration with state-of-the-art algorithms for offline learning classical planning domains from an input set of trajectories in the following settings:

  1. full observability: SAM [1].
  2. partial observability: OffLAM [2].
  3. full and noisy observability: NOLAM [3], ROSAME [4].

[1] "Safe Learning of Lifted Action Models", B. Juba and H. S. Le, and R. Stern, Proceedings of the 18th International Conference on Principles of Knowledge Representation and Reasoning, 2021.

[2] "Lifted Action Models Learning from Partial Traces", L. Lamanna, L. Serafini, A. Saetti, A. Gerevini, and P. Traverso, Artificial Intelligence Journal, 2025.

[3] "Action Model Learning from Noisy Traces: a Probabilistic Approach", L. Lamanna and L. Serafini, Proceedings of the Thirty-Fourth International Conference on Automated Planning and Scheduling, 2024.

[4] "Neuro-symbolic learning of lifted action models from visual traces", X. Kai, S. Gould, and S. Thiébaux, Proceedings of the Thirty-Fourth International Conference on Automated Planning and Scheduling, 2024.

Adding an algorithm

PRs with new or existing state-of-the-art algorithms are welcome:

  1. Add the algorithm PyPI package in requirements.txt
  2. Create a Python class in algorithms which inherits from AlgorithmAdapter.py and implements the learn method

Evaluation

AMLGym can evaluate a PDDL model by means of several metrics:

  1. Syntactic similarity
  2. Problem solving
  3. Predicted applicability and predicted effects

Benchmarking

See the benchmark package for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Citing

Not yet available

Release files for amlgym 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amlgym 1.0.12
File Size Uploaded
amlgym-1.0.12.tar.gz 2.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for amlgym 1.0.12
File Interpreter ABI Platform
amlgym-1.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 MB

Release files / amlgym-1.0.12.tar.gz

Download URL amlgym-1.0.12.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
db5168310ab23d5f19dc9eaac7be917626a06a2f6c6064bcb90dfc92eea075ac
BLAKE2b-256 checksum
How to use checksums
f037059e6d71b46d59cbc4fddd15ea134bb609fd1457b96ae4cf3512a686c9db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.13

Release files / amlgym-1.0.12-py3-none-any.whl

Download URL amlgym-1.0.12-py3-none-any.whl
Size 4.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2574c7dec57cfe380cd7502870346e96d8f8dc4b630a64671cdd90497b91dc78
BLAKE2b-256 checksum
How to use checksums
4b641fba2f9e285cdd2d6c6aa58e4391c800ac9969ff61d8469dd85e1de32fcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

1.0.12 This release

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release 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