fundamentals

docs/reference/ — API reference and coverage contracts

Most files here are one Markdown page per subpackage under src/active_inference/. Those pages enumerate every public symbol with its signature, purpose, and shape contract — the closest thing this repository has to generated docs. The directory also contains the book-topic coverage matrix that audits the repo-root extras/ curriculum against the live registry, plus the inspected PDF source-spine contract.

Pages

File Mirrors Public symbols
book_topic_matrix.md extras/ + active_inference.extra_topics Book-section coverage by extras topic and artifact mode.
source_spine.md active_inference.source_spine + scripts/validate_source_spine.py Inspected PDF ledger: Chapters 1-14, Appendices A-D, and no Chapter 15.
orchestrator_provenance.md chapters/, extras/, demo/, scripts/validate_orchestrator_provenance.py Source-method boundary for thin wrappers, source API metadata, and artifact validation gates.
demos.md demo/, active_inference.demo_topics, active_inference.demo_workflows Application demo registry, workflow builders, and export paths.
gnn_spec.md active_inference.gnn_spec + specs/ Reader for the committed GNN declaration of the Chapter 9 weather model and its pin record.
core.md src/active_inference/core/ distributions, generative process / model, exact inference, LGS, diagnostics, Appendix math/noise/model comparison, variational free energy (Ch.4), free-energy variants, factor-graph messages, ergodic-density helpers, thermodynamic/FEP bridge helpers, predictive coding (Ch.5), generalized filtering / action (Ch.6–7), continuous learning / hierarchy (Ch.8), POMDPs (Ch.9–10), and Part III helpers.
estimators.md src/active_inference/estimators/ MLE, MAP, gradient descent, linear regression, Bayesian linear regression, factor-analysis EM, variational inference (Ch.4), predictive coding (Ch.5), generalized filtering / action (Ch.6–7), continuous learning (Ch.8), POMDP estimators (Ch.9–11), and application demos (Ch.13).
utils.md src/active_inference/utils/ grids, paths, logger factory, and NPZ+JSON raw-data exports.
visualizations.md src/active_inference/visualizations/ plotting helpers, slider widgets, GIF animations, statistical-diagnostic figures, the composable Ch.4–10 unified layer, and colourblind-safe style.

How each page is structured

  1. Subpackage overview — one paragraph on what it is for.
  2. Module table — each .py file mapped to its purpose.
  3. Public API table — every symbol in __all__ with signature.
  4. Conventions — package-wide invariants (variances vs std, RNG passing, log-space arithmetic).
  5. See also — relative links to topic / statistics pages that use the API.

See also