Skip to content

Update prob_calculations.py

e7a360b
Select commit
Loading
Failed to load commit list.
Merged

Refactor Conditional GFlowNets #431

Update prob_calculations.py
e7a360b
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Dec 18, 2025 in 0s

74.38% (+0.14%) compared to 91aae26

View this Pull Request on Codecov

74.38% (+0.14%) compared to 91aae26

Details

Codecov Report

❌ Patch coverage is 76.54723% with 72 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.38%. Comparing base (91aae26) to head (e7a360b).

Files with missing lines Patch % Lines
src/gfn/states.py 72.41% 21 Missing and 11 partials ⚠️
src/gfn/gym/hypergrid.py 83.58% 3 Missing and 8 partials ⚠️
src/gfn/env.py 71.42% 9 Missing and 1 partial ⚠️
src/gfn/utils/prob_calculations.py 76.00% 5 Missing and 1 partial ⚠️
src/gfn/gym/bitSequence.py 25.00% 3 Missing ⚠️
src/gfn/gflownet/detailed_balance.py 80.00% 1 Missing and 1 partial ⚠️
src/gfn/gflownet/flow_matching.py 75.00% 1 Missing and 1 partial ⚠️
src/gfn/utils/training.py 33.33% 1 Missing and 1 partial ⚠️
src/gfn/containers/replay_buffer.py 0.00% 0 Missing and 1 partial ⚠️
src/gfn/gflownet/sub_trajectory_balance.py 85.71% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #431      +/-   ##
==========================================
+ Coverage   74.23%   74.38%   +0.14%     
==========================================
  Files          47       47              
  Lines        6805     6891      +86     
  Branches      800      825      +25     
==========================================
+ Hits         5052     5126      +74     
- Misses       1449     1454       +5     
- Partials      304      311       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.