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.0.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.0-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: information_gain_aml-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e40e45e25a006206f2b6055584855ebc3db51a46f0fbbb505486fd214cb74b75
MD5 303b5955b21596698cecf8db1e69d0e6
BLAKE2b-256 dd6182f0ef2bc574102335bb04d1c5cd20c54e5de98c0a866a379321a0e09b39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for information_gain_aml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2aa4b2101eade5e63535d2884d4a2249cc965933c8ed30de363a31d544007d57
MD5 a6f8052a67491351f6fee047a5c92754
BLAKE2b-256 48f43502337a6a5d0cd08e1341b1fd662bc5ecab5a7eacd670ff3c5a30327545

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