-
Notifications
You must be signed in to change notification settings - Fork 8
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
[ENH] Add the ability to check the validity of an MAG #91
Conversation
@adam2392 any idea why the DCO is complaining? I have signed off my commits. |
Codecov Report
@@ Coverage Diff @@
## main #91 +/- ##
==========================================
+ Coverage 76.72% 77.01% +0.28%
==========================================
Files 42 42
Lines 3317 3358 +41
Branches 952 965 +13
==========================================
+ Hits 2545 2586 +41
Misses 570 570
Partials 202 202
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I wouldn't worry about it. You can try doing the rebasing instructions to fix it if you want: https://github.com/py-why/pywhy-graphs/pull/91/checks?check_run_id=15461061662 |
@adam2392 In finding directed cycles, does the direction of the directed edge matter? |
Sorry for the delay. In causality, typically cycles are directed cycles. In directed cycles, by definition the direction matters. I would review the Zhang paper if any questions like this arise in case I can't respond in a timely manner. |
@adam2392 thanks for the clarification. |
@adam2392 What should I have in the sets L and S when checking for an inducing path? |
You can have them be passed in by user and default to empty sets. |
@adam2392 I think the function is complete. Now I should add unit tests. Do you know how I can get examples of valid and invalid MAGs? |
I would just construct them by hand following the definition, or look at the papers on causal discovery (if you see them in a paper, cite where you got it from and which figure). |
@adam2392 I added some tests for both, the function that checks the presence of adc and the valid_mag function. Do you want me to add more to either of those? |
@adam2392 Is this good enough? |
Can you add a CHANGELOG entry to fix the CI? And add these functions to |
@adam2392 I updated the CHANGELOG for v0.2, is that fine? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few nits and then it LGTM. This will now help you finish #85
Which will finally enable you to finish the PR for checking validity of a PAG perhaps(?).
We can always revisit this code if there is a bug you find
@adam2392 I added the definitions, can you take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after final few comments
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Co-authored-by: Adam Li <[email protected]> Signed-off-by: Aryan Roy <[email protected]> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
Co-authored-by: Adam Li <[email protected]> Signed-off-by: Aryan Roy <[email protected]> Signed-off-by: Aryan Roy <[email protected]>
Co-authored-by: Adam Li <[email protected]> Signed-off-by: Aryan Roy <[email protected]> Signed-off-by: Aryan Roy <[email protected]>
Co-authored-by: Adam Li <[email protected]> Signed-off-by: Aryan Roy <[email protected]> Signed-off-by: Aryan Roy <[email protected]>
Signed-off-by: “Aryan <“[email protected]”> Signed-off-by: Aryan Roy <[email protected]>
30862db
to
93efbd2
Compare
@adam2392 I rebased the branch and removed the quotes from my email address but the DCO won't stop complaining. Is there a way to merge this without DCO approval? |
Thanks @aryan26roy ! |
Closes #90
Changes proposed in this pull request:
Before submitting
section of the
CONTRIBUTING
docs.Writing docstrings section of the
CONTRIBUTING
docs.After submitting