Skip to content

Add example notebook: causal discovery with a foundation model + GCM root cause analysis#1663

Open
bloebp wants to merge 2 commits into
mainfrom
gcm_foundcause
Open

Add example notebook: causal discovery with a foundation model + GCM root cause analysis#1663
bloebp wants to merge 2 commits into
mainfrom
gcm_foundcause

Conversation

@bloebp

@bloebp bloebp commented Jul 8, 2026

Copy link
Copy Markdown
Member

Adds a new GCM example notebook showing that a plain CSV of observational data is sufficient for a full causal analysis: the causal graph is inferred with FoundCause, a pretrained foundation model for causal discovery (see Paper), and DoWhy's GCM module runs the analyses on the discovered graph.

The scenario is a simulated bottling line (ground truth via DoWhy's random SCM generator, including a hidden confounder), covering graph discovery, falsification with falsify_graph, root cause analysis of a defect spike and distribution-change attribution of a throughput drop.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new advanced documentation example notebook that demonstrates end-to-end causal discovery (via FoundCause) followed by DoWhy GCM analyses (graph falsification, anomaly attribution/root-cause analysis, and distribution-change attribution), and exposes it in the example notebook index.

Changes:

  • Adds a new GCM example notebook: causal discovery from observational CSV data using FoundCause, then GCM-based analyses on the discovered graph.
  • Updates the example notebook index to feature and include the new notebook in the Real world-inspired examples section.
  • Ignores the local FoundCause model cache directory created when running the notebook.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.

File Description
docs/source/example_notebooks/nb_index.rst Adds the new notebook to the grid cards and toctree so it appears in the rendered docs.
docs/source/example_notebooks/gcm_causal_discovery_foundcause.ipynb New advanced notebook demonstrating causal discovery + GCM analyses on a simulated bottling-line scenario.
.gitignore Ignores the notebook-created foundcause_model/ cache directory under docs/source/example_notebooks/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/source/example_notebooks/gcm_causal_discovery_foundcause.ipynb
Comment thread docs/source/example_notebooks/gcm_causal_discovery_foundcause.ipynb
Comment thread docs/source/example_notebooks/gcm_causal_discovery_foundcause.ipynb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants