Skip to main content

CNF/SAT-based information-theoretic online action model learning

Project description

Online Action Model Learning Experiment Framework

Overview

A framework for online action model learning in PDDL domains, using a CNF/SAT solver-based information-theoretic approach for uncertainty representation.

Algorithm

Information-Theoretic Selection - CNF-based approach using expected information gain with SAT solver integration

Getting Started

For detailed architecture and design principles, see DEVELOPMENT_RULES.md

Installation

# Install core dependencies
pip install unified-planning pysat numpy pandas matplotlib

# Install additional UP integrations (optional)
pip install unified-planning[pyperplan,tamer]

# Install requirements
pip install -r requirements.txt

Usage

from src.experiments.runner import ExperimentRunner
from src.algorithms.information_gain import InformationGainLearner

# Configure experiment
config = {
    'domain': 'blocksworld',
    'problems': ['p01', 'p02', 'p03'],
    'algorithms': ['information_gain'],
    'metrics': ['sample_complexity', 'time_to_goal', 'model_accuracy', 'cnf_formula_size'],
    'seed': 42,
    'cnf_settings': {
        'solver': 'minisat',
        'minimize_formulas': True,
        'max_clauses': 1000
    }
}

# Run experiments
runner = ExperimentRunner(config)
results = runner.run()
runner.visualize_results(results)

Code Examples

For detailed examples and code patterns, see QUICK_REFERENCE.md

Project Status

For current implementation status and roadmap, see IMPLEMENTATION_TASKS.md

Testing

# Run curated test suite (51 tests, 100% pass rate)
make test

# Run with Docker for consistent environment
make docker-test

For complete testing options and Docker usage, see QUICK_REFERENCE.md

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

information_gain_aml-0.1.1.tar.gz (63.2 kB view details)

Uploaded Source

Built Distribution

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

information_gain_aml-0.1.1-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

Details for the file information_gain_aml-0.1.1.tar.gz.

File metadata

  • Download URL: information_gain_aml-0.1.1.tar.gz
  • Upload date:
  • Size: 63.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for information_gain_aml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 224b4e6a389f799b3267be7d1290091adc1635a1c7ef67452c77919d88e13577
MD5 a56e425d8b858e9cb1d98f159cdef0f6
BLAKE2b-256 2a083ecd86d586d880eb7bfb1e6031a5c20d2a362e3ca45594c63752ee80db77

See more details on using hashes here.

File details

Details for the file information_gain_aml-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for information_gain_aml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06ab36eaaa097efff512a0ec1053bb42b391e5151298db9e31ca0479b8cf6193
MD5 a11c602841865f1d9ee248b1ba085f97
BLAKE2b-256 c682f2697c4081e202695fb2600a97d19a79a24ce06817f48828ec3934b007a5

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