Skip to main content

Causal Attributions

@validate_call
def causal_attributions(outcome: str, normalise: bool = False) -> pd.DataFrame

Get the causal attributions for an outcome.

Arguments:

  • outcome str - The outcome node.
  • normalise bool - Whether to normalise the causal attributions.

Returns:

  • pd.DataFrame - A dataframe representing the causal attributions of the outcome.

Example:

model.causal_attributions("y")

data