Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method and example to falsify a user-given DAG using a permutation-based test #930

Merged
merged 4 commits into from
May 16, 2023

Conversation

eeulig
Copy link
Contributor

@eeulig eeulig commented Apr 26, 2023

  • We add a novel method to falsify a user-given DAG using a permutation-based test. In particular the function gcm.falsify.evaluate_graph takes as input a user-given DAG and some observational data and returns a measure of how much better the given DAG is than a random node permutations in terms of the CIs it entails. The function can also report suggestions to the user via the flag suggestions and visualize the result via the flag plot.
  • An example notebook highlighting the main functionality of the new feature is provided in docs/source/example_notebooks/gcm_falsify_dag.ipynb.
  • Unit tests are provided in tests/gcm/test_falsify.py.

@emrekiciman
Copy link
Member

Hi @eeulig, Thank you for this PR! I haven't reviewed it, but do notice that the DCO (developer certificate of origin) test is failing. If you click on the details link here, there are instructions on how to resolve this. Could you take a look at that, and let us know if the instructions are unclear. Thank you again!
image

dowhy/gcm/constant.py Outdated Show resolved Hide resolved
dowhy/gcm/falsify.py Outdated Show resolved Hide resolved
dowhy/gcm/falsify.py Outdated Show resolved Hide resolved
dowhy/gcm/falsify.py Outdated Show resolved Hide resolved
dowhy/gcm/falsify.py Show resolved Hide resolved
dowhy/gcm/falsify.py Outdated Show resolved Hide resolved
dowhy/gcm/falsify.py Outdated Show resolved Hide resolved
tests/gcm/test_falsify.py Outdated Show resolved Hide resolved
tests/gcm/test_falsify.py Outdated Show resolved Hide resolved
dowhy/gcm/falsify.py Outdated Show resolved Hide resolved
…n-based test

Signed-off-by: eeulig <contact@eeulig.com>
Signed-off-by: eeulig <contact@eeulig.com>
eeulig added 2 commits May 3, 2023 13:58
Signed-off-by: eeulig <contact@eeulig.com>
Signed-off-by: eeulig <contact@eeulig.com>
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.

None yet

3 participants