Bayesian Networks
Use this sub-skill when the graph already exists and you want CPDs, inference, interventions, evaluation metrics, plotting, or latent-variable EM.
Route here when
- The request names
BayesianNetwork,InferenceEngine,roc_auc,classification_report,plot_structure,display_plot_ipython,EMSingleLatentVariable, orBayesianNetworkClassifier. - You need to fit CPDs on a known DAG.
- You need causal queries or do-calculus interventions.
- You need a Bayesian-network classifier or latent-variable estimation.
Route elsewhere when
- You still need to learn the DAG ->
../structure-learning/SKILL.md. - You need to discretize inputs before fitting a BN ->
../discretization/SKILL.md. - You need synthetic fixtures or dynamic toy data ->
../synthetic-data/SKILL.md.
Start fast
- Read
references/api-reference.mdfor the BN constructors and query methods. - Read
references/workflows.mdfor fitting, inference, evaluation, plotting, and EM recipes. - Run
../../scripts/smoke_bayesian_network.pyafter environment changes or when a query path breaks. - Read
references/troubleshooting.mdfor CPD, node-name, and intervention failures.
