cascade.graph.annotate_explanation

cascade.graph.annotate_explanation(digraph, ctfact, causal_map, cutoff=0.1)[source]

Annotate counterfactual explanation to the causal graph

Parameters:
Return type:

DiGraph

Returns:

Annotated causal graph

Tip

It is strongly recommended to limit cells to a single perturbation for use as ctfact.