Contents:
Extract the core explanation graph from an annotated causal graph that explains the predicted change in a list of leaf nodes
annotated (DiGraph) – Annotated causal graph (from annotate_explanation())
DiGraph
annotate_explanation()
leaves (list[str]) – List of leaf nodes
list
str
min_frac_ptr (float) – Minimal explained fraction for an edge to be considered
float
depth_limit (int | None) – Depth limit for the breadth-first search
int
None
Core explanation graph