Skip to main content

Action model acquisition from state trace data.

Project description

MAcq: The Model Acquisition Toolkit

CI Coverage Code style: black License

This library is a collection of tools for planning-like action model acquisition from state trace data. It contains a reimplementation from many existing works, and generalizes some of them to new settings.

Usage

from macq import generate, extract
from macq.observation import IdentityObservation, AtomicPartialObservation

# get a domain-specific generator: uses api.planning.domains problem_id/
# generate 100 traces of length 20 using vanilla sampling
traces = generate.pddl.VanillaSampling(problem_id = 123, plan_len = 20, num_traces = 100).traces

traces.generate_more(10)

action = traces[0][0].action
traces.get_usage(action)
[0.05, 0.05, ..., 0.05]

trace = traces[0]
len(trace)
20

trace.fluents
trace.actions
trace.get_pre_states(action) # get the state before each occurance of action
trace.get_post_states(action) # state after each occurance of action
trace.get_total_cost()

Survey

You can find the full scope of papers considered in the survey (implemented and otherwise) at http://macq.planning.domains . This repository of model acquisition techniques will be added to over time.

Survey Papers

Citing this work

@inproceedings{macq-keps-2022,
  author    = {Ethan Callanan and Rebecca De Venezia and Victoria Armstrong and Alison Paredes and Tathagata Chakraborti and Christian Muise},
  title     = {MACQ: A Holistic View of Model Acquisition Techniques},
  booktitle = {The ICAPS Workshop on Knowledge Engineering for Planning and Scheduling (KEPS)},
  year      = {2022}
}

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

macq-0.3.9.tar.gz (71.8 kB view details)

Uploaded Source

Built Distribution

macq-0.3.9-py3-none-any.whl (88.4 kB view details)

Uploaded Python 3

File details

Details for the file macq-0.3.9.tar.gz.

File metadata

  • Download URL: macq-0.3.9.tar.gz
  • Upload date:
  • Size: 71.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for macq-0.3.9.tar.gz
Algorithm Hash digest
SHA256 7ef25bbe31139607b1ff875124fa8ccd3165f088032de7def10d095e33994675
MD5 1d5e632124585260615482e3e18718e8
BLAKE2b-256 be67ecaa6538ea292737ea510e560dc617c3a839c4379e938e33361f52a815cd

See more details on using hashes here.

File details

Details for the file macq-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: macq-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 88.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for macq-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6fccc7f8a25a45cff6ad22a65a4f290e66014eee4bb57fa6917c68a6c10d1bc5
MD5 e23303867e0865271bfca1c00327ca3f
BLAKE2b-256 31f9739852a2ddff926152ac56c39f0d802362f94cf44d45ce7b5fefe79901a3

See more details on using hashes here.

Supported by

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