Expand description
Bayesian confidence model for relationship edges.
Uses Beta-Binomial conjugate prior with pseudocount 10. Confidence moves slowly per observation but accumulates with repeated evidence.
Enums§
- Extraction
Context - How a relationship was established — determines initial confidence prior.
Constants§
- DECAY_
FLOOR - Minimum effective confidence floor — decay never goes below this.
- DEFAULT_
HALF_ LIFE_ DAYS - Default half-life for temporal decay (days). At 90 days without reinforcement, effective confidence halves.
Functions§
- bayesian_
update - Bayesian update using Beta-Binomial conjugate prior.
- effective_
confidence - Compute effective confidence for a relationship, using
last_reinforcedorvalid_fromas anchor. - path_
confidence - Compound confidence along a multi-hop path.
- temporal_
decay - Compute effective confidence after temporal decay.