Skip to main content

Module causal

Module causal 

Source
Expand description

Causal and counterfactual data generation.

Implements Structural Causal Models (SCMs) for:

  • Defining causal graphs with typed variables and mechanisms
  • Generating data respecting causal structure
  • do-calculus interventions (do(X=x))
  • Counterfactual “what-if” scenarios

Re-exports§

pub use counterfactual::*;
pub use graph::*;
pub use intervention::*;
pub use scm::*;
pub use validation::*;

Modules§

counterfactual
Counterfactual reasoning via abduction-action-prediction.
graph
intervention
Intervention engine for causal inference using do-calculus.
scm
validation
Causal structure validation.