1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Bayesian Networks Module (Enterprise Only)
//!
//! Probabilistic graphical models for causal reasoning:
//! - Directed Acyclic Graph (DAG) structure
//! - Conditional probability tables (CPTs)
//! - Belief propagation inference
//! - pgmpy validated calculations
//!
//! # Example
//!
//! ```yaml
//! bayesian_network:
//! name: "Credit Risk Model"
//!
//! nodes:
//! economic_conditions:
//! type: discrete
//! states: [good, neutral, bad]
//! prior: [0.3, 0.5, 0.2]
//!
//! company_revenue:
//! type: discrete
//! states: [high, medium, low]
//! parents: [economic_conditions]
//! cpt:
//! good: [0.6, 0.3, 0.1]
//! neutral: [0.3, 0.5, 0.2]
//! bad: [0.1, 0.3, 0.6]
//!
//! default_probability:
//! type: discrete
//! states: [low, medium, high]
//! parents: [company_revenue]
//! cpt:
//! high: [0.8, 0.15, 0.05]
//! medium: [0.4, 0.4, 0.2]
//! low: [0.1, 0.3, 0.6]
//! ```
//!
//! See ADR for architecture decisions.
// Re-exports
pub use ;
pub use ;
pub use BeliefPropagation;