Skip to content

Add explicit init() to BasePotential and NeuralPosterior#1829

Closed
patelshivani2283-lab wants to merge 7 commits into
sbi-dev:mainfrom
patelshivani2283-lab:feature/init-vector-field
Closed

Add explicit init() to BasePotential and NeuralPosterior#1829
patelshivani2283-lab wants to merge 7 commits into
sbi-dev:mainfrom
patelshivani2283-lab:feature/init-vector-field

Restore lazy initialization for backward compatibility

ce5929d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Apr 7, 2026 in 1s

86.28% (target 70.00%)

View this Pull Request on Codecov

86.28% (target 70.00%)

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.28%. Comparing base (937efc2) to head (ce5929d).
⚠️ Report is 48 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1829      +/-   ##
==========================================
- Coverage   88.54%   86.28%   -2.27%     
==========================================
  Files         137      143       +6     
  Lines       11515    17808    +6293     
==========================================
+ Hits        10196    15365    +5169     
- Misses       1319     2443    +1124     
Files with missing lines Coverage Δ
sbi/inference/posteriors/base_posterior.py 86.36% <100.00%> (+1.17%) ⬆️
sbi/inference/potentials/base_potential.py 85.86% <100.00%> (+5.10%) ⬆️

... and 76 files with indirect coverage changes