Reference Tables
1. Modules & Key Entrypoints
Module |
Purpose |
Notes |
---|---|---|
|
Batch orchestration of engines over factor graphs. |
Handles multiprocessing, logging, plotting. |
|
Base synchronous BP engine. |
Provides step routine, history tracking, convergence checks. |
|
Concrete engine variants ( |
Mix of damping, cost reduction, splitting strategies. |
|
Helper for constructing factor graphs. |
Supports random graph generation and deterministic setups. |
|
Centralised defaults and registries. |
Contains |
|
External per-step recorder. |
No engine modifications; outputs JSON-friendly data. |
|
Plots argmin trajectories. |
Accepts JSON or in-memory snapshot lists. |
2. Configuration Defaults (global_config_mapping.py
)
Section |
Key |
Default |
Meaning |
---|---|---|---|
Engine |
|
2000 |
Per-run iteration cap. |
Engine |
|
|
Whether to min-normalise messages post-cycle. |
Engine |
|
|
Enables |
Engine |
|
|
Enables anytime inference updates. |
Engine |
|
|
Collects detailed BCT data. |
Simulator |
|
5000 |
Default iteration cap for simulator runs. |
Simulator |
|
|
Logger default verbosity. |
Simulator |
|
3600 |
Multiprocessing get timeout (seconds). |
Policy |
|
0.9 |
Default damping parameter. |
Policy |
|
0.5 |
Weight for split engines. |
Override defaults by passing overrides when constructing engines or updating the defaults dictionary.
3. CLI & Scripts
Command |
Description |
---|---|
|
Prints CLI version. |
|
Runs bundled random-graph simulation demo. |
|
Demonstrates Min-Sum on a small graph. |
|
Plots argmin trajectories from snapshot JSON. |
4. Environment Variables
PYTHONPATH
should includesrc/
if you are not using editable installs.PROPLOW_LOG_LEVEL
(custom) can be set before running scripts to override simulator logging (extendSimulator
to read it if desired).
5. File & Directory Conventions
Path |
Usage |
---|---|
|
Default destination for simulator and engine logs. |
|
Suggested output folder for experiment artefacts (plots, JSON). |
|
Exploratory analysis; keep results light-weight. |
|
Deployment & operations documentation. |
6. Glossary
Belief: Aggregated message vector representing variable costs/probabilities.
Argmin: Index of minimum value within a belief vector; indicates preferred assignment under Min-Sum semantics.
Neutral Message: Message whose minimum value is not unique; indicates ties or flat preferences.
Snapshot: Structured record of a BP iteration capturing messages, assignments, and cost metrics.
CT Factory: Function that generates cost tables (e.g., random integers, Poisson) for factor nodes.
Use this reference as a quick lookup when working with the codebase or extending the simulator.