Skip to content

Build Python belief graph engine #2

@joshualamerton

Description

@joshualamerton

Summary

Implement a minimal Python engine for managing belief graphs.

The engine should support storing beliefs, linking evidence, and updating confidence values.

Goals

Build the first working implementation of the BeliefGraph system.

Core Components

belief_graph.py

Responsible for storing beliefs and relationships.

bayesian_update.py

Handles Bayesian confidence updates.

propagation_engine.py

Propagates confidence changes across the graph.

Basic Features

  • create belief nodes
  • add evidence
  • update belief confidence
  • propagate belief changes through relationships

Example

belief = create_belief(
statement="Interest rates affect housing affordability",
confidence=0.6
)

add_evidence(
belief,
likelihood=0.85
)

update_belief(belief)

Deliverables

  • working Python implementation
  • basic test examples
  • example script in examples/demo.py

Notes

The first version can be simple. The goal is to demonstrate the concept.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions