Add example notebook: causal discovery with a foundation model + GCM root cause analysis#1663
Open
bloebp wants to merge 2 commits into
Open
Add example notebook: causal discovery with a foundation model + GCM root cause analysis#1663bloebp wants to merge 2 commits into
bloebp wants to merge 2 commits into
Conversation
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
51 tasks
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.