y0-causal-inference / y0

❓y0 (pronounced "why not?") is for causal inference in Python
https://y0.readthedocs.io
BSD 3-Clause "New" or "Revised" License
44 stars 9 forks source link

Improvements for causal workflow #205

Closed cthoyt closed 7 months ago

cthoyt commented 7 months ago

This PR makes two improvements:

  1. Provides an efficient implementation to find nodes on causal paths between sources and targets
  2. Provides a first-party function to apply Evans' simplification rules to an ADMG
codecov[bot] commented 7 months ago

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (1674709) 77.41% compared to head (e641da5) 77.19%.

:exclamation: Current head e641da5 differs from pull request most recent head f129899. Consider uploading reports for the commit f129899 to get more accurate results

Files Patch % Lines
src/y0/algorithm/simplify_latent.py 28.57% 10 Missing :warning:
src/y0/graph.py 81.25% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #205 +/- ## ========================================== - Coverage 77.41% 77.19% -0.22% ========================================== Files 48 48 Lines 3179 3206 +27 Branches 703 712 +9 ========================================== + Hits 2461 2475 +14 - Misses 614 626 +12 - Partials 104 105 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.