april-tools / cirkit

a python framework to build, learn and reason about probabilistic circuits and tensor networks
https://cirkit-docs.readthedocs.io/en/latest/
GNU General Public License v3.0
71 stars 1 forks source link

Evidence operator #271

Closed loreloc closed 1 week ago

loreloc commented 4 weeks ago

Implemented evidence symbolic operator and added support for it in the Torch compiler.

List of major changes in this PR:

Closes #268 .

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 78.00270% with 163 lines in your changes missing coverage. Please review.

Project coverage is 70.16%. Comparing base (e5f1b5c) to head (f9bdb0f). Report is 32 commits behind head on main.

Files with missing lines Patch % Lines
cirkit/symbolic/parameters.py 82.55% 25 Missing and 1 partial :warning:
cirkit/symbolic/layers.py 74.15% 15 Missing and 8 partials :warning:
cirkit/backend/torch/layers/input.py 70.66% 18 Missing and 4 partials :warning:
cirkit/symbolic/circuit.py 71.79% 22 Missing :warning:
cirkit/symbolic/functional.py 79.36% 7 Missing and 6 partials :warning:
cirkit/backend/torch/graph/modules.py 67.64% 8 Missing and 3 partials :warning:
cirkit/backend/torch/parameters/nodes.py 86.56% 9 Missing :warning:
cirkit/symbolic/operators.py 57.14% 9 Missing :warning:
cirkit/pipeline.py 11.11% 8 Missing :warning:
cirkit/symbolic/dtypes.py 55.55% 2 Missing and 2 partials :warning:
... and 8 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #271 +/- ## ========================================== + Coverage 68.95% 70.16% +1.20% ========================================== Files 45 45 Lines 4986 5238 +252 Branches 547 578 +31 ========================================== + Hits 3438 3675 +237 + Misses 1348 1346 -2 - Partials 200 217 +17 ```

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