Skip to content

Releases: sbi-dev/sbi

v0.25.0

05 Sep 13:02
Compare
Choose a tag to compare

✨ Highlights

🚀 New Inference Methods

🧠 Neural Network Architectures & Embedding Networks

⭐ Major Features & Capabilities

📚 Documentation & Tutorials

🐛 Bug Fixes

  • z_score correct order in Zuko by @anastasiakrouglova in #1492
  • Minor fix when moving thetas from GPU to CPU by @famura in #1515
  • Minor fix while using unconditional density estimator and LRU embedding by @ARna06 in #1556
  • fix: replace 'in' operator with '==' for proper classifier comparison by @abelaba in #1550
  • flowmatching condition shape fix by @gmoss13 in #1584
  • patch for torch bug in tarp, run torch.histogram with cpu-only tensor by @psteinb in #1596
  • fix failing tarp test by @janfb in #1628
  • fix: cap max_sampling_batch_size to prevent excessive memory by @janfb in #1624
  • 1561 computation of denoising posterior precision matrix in jac method score fn iid by @manuelgloeckler in #1636
  • fix xfail test, fix deprecation warnings by @janfb in #1642
  • fix: iid-score device handling by @janfb in #1650
  • fix: fmpe singularity on sde sampling by @manuelgloeckler in #1661

🛠️ Maintenance & Improvements

🔧 Code Quality & Refactoring

  • Refactoring flow and score matching classes and nets by @manuelgloeckler in #1544
  • Rename inference trainer classes by @abelaba in #1605
  • Rename VectorFieldInference to VectorFieldTrainer by @abelaba in #1614
  • Refactor build_posterior to Eliminate Duplication Across Trainers by @abelaba in #1610
  • Refactor build posterior method arguments to use Literals by @abelaba in #1606
  • Refactor build_posterior Posterior Configuration Using Dataclasses by @abelaba in #1619
  • Use TypeAlias and consistent naming for sbi types by @janfb in #1637
  • Add protocol for estimator builder by @abelaba in #1633
  • Improve abc implementation by @janfb in #1615
  • Refactor RatioEstimator to subclass ConditionalEstimator @abelaba in #1652

🏷️ Type Hints & API Improvements

  • fix: add enum for flow options to fix type hints. by @janfb in #1562
  • fix LC2ST kwarg typing by @janfb in #1565
  • fix: Update RatioEstimator classifier argument to use a Protocol by @abelaba in #1582
  • Update append_simulations return type to Self by @abelaba in #1622
  • Deprecation Warnings for build_posterior stringly typed parameters by @abelaba in #1627

🧪 Testing & CI/CD

📖 Documentation & Website

🏗️ Infrastructure & Dependencies

  • Add uv support by @abelaba in #1518
  • switch to numfocus code of conduct by @janfb in #1560
  • Update readme with new JOSS citation by @janfb in #1564
  • update numfocus code of conduct by @janfb in #1602
  • Added Apache License reference co...
Read more

v0.24.0

16 Mar 11:59
f732971
Compare
Choose a tag to compare

✨ Highlights

🐛 Bug Fixes

  • fix: leakage correction breaks consistency of log prob vs log prob batched by @manuelgloeckler in #1355
  • fix #1343 device handling in mog_log_prob by @janfb in #1356
  • Fix failing tutorials, change MNLE default for log_transform to False by @janfb in #1367
  • Fix conditional posterior shape and device bugs. by @janfb in #1373
  • fix: type fix in VI subclasses. xfail pymc tests. by @janfb in #1390
  • Temporary Wrappers to fix MADE by @gmoss13 in #1398
  • Fix mnle tests, MCMC init pbar, sir batch size. by @janfb in #1410
  • fix mnle tests by @janfb in #1415
  • fix: protocol and refactor for custom potential by @janfb in #1409
  • fix docs workflow by @janfb in #1419
  • fix: gpu-handling for CategoricalMADE by @janfb in #1448

🛠️ Maintenance & Improvements

🎉 New Contributors

Full Changelog: v0.23.3...v0.24.0

v0.23.3

30 Dec 13:27
9152e93
Compare
Choose a tag to compare

v0.23.3

Highlights 🤩

What's Changed 🚧

New Contributors 🎉

Full Changelog: v0.23.2...v0.23.3

v0.23.2

04 Oct 12:27
428fc93
Compare
Choose a tag to compare

Bug Fixes

Documentation

Maintenance

  • Refactor simulate_for_sbi location by @samadpls (#1253)
  • build: devcontainer update by @janfb (#1252)
  • fix: docker notebook python version by @janfb (#1258)
  • refactor: remove outputs except plots from tutorials. by @janfb (#1266)
  • build: automatic nb stripping and pypi upload by @janfb (#1267)
  • refactor: remove deprecated x_shape where not needed by @janfb (#1271)
  • more explicit error message for CNN shapes by @Ankush7890 (#1281)

v0.23.1

29 Aug 06:58
bf2f96f
Compare
Choose a tag to compare
  • fix: include score folder by adding __init__.py (#1245 #1246)

v0.23.0

28 Aug 15:48
601f129
Compare
Choose a tag to compare

Announcements

Major Changes

  • internal renaming of all inference classes from, e.g., SNPE to NPE (i.e., we
    removed the S prefix). The functionality of the classes remains the same. The NPE
    class handles both the amortized and sequential versions of neural posterior
    estimation. An alias for SNPE (and other sequential methods) still exists for
    backwards compatibility (#1238) (@michaeldeistler).
  • change sbi default parameters: training_batch_size=200, num_chains=20 (#1221)
    (@janfb)
  • change imports of posterior_nn, likelihood_nn, and classifier_nn. They should
    now be imported from sbi.neural_nets, not from sbi.utils (#994) (@famura)
  • big refactoring of plotting utilities, new tutorial (#1084) (@Matthijspals)
  • improved tutorials and website documentation (#1012, #1051, #1073) (@augustes,
    @zinaStef, @lisahaxel, @psteinb)
  • improved website structure and contribution guides (#1019) (@tomMoral, @janfb)
  • drop support for python3.8 and torch1.12 (#1233)
  • refactor folder structure and naming of neural_nets (#1237) (@michaeldeistler)

New Features

Bug Fixes

Maintenance and other changes

v0.22.0

04 Dec 11:07
Compare
Choose a tag to compare

API change

  • We have moved sbi to an new github organization: https://github.com/sbi-dev/sbi
  • We have changed the website of the sbi docs: https://sbi-dev.github.io/sbi/.
  • sbi.analysis.pairplot: upper was replaced by offdiag and will be deprecated in a future release.

Features and enhancements

  • size-invariant embedding nets for amortized inference with iid-data (@janfb, #808)
  • option for new using MAF with rational quadratic splines (thanks to @ImahnShekhzadeh, #819)
  • improved docstring for process_prior (thanks to @musoke, #813)
  • extended tutorial for SBI with iid data (@janfb, #857)
  • new tutorial for SBI with experimental conditions and mixed data (@janfb, #829)
  • New options for pairplot:
    • upper is now called offdiag to match other kwargs.
    • alternating colors for samples and points
    • option to add a legend and pass kwargs for the legend.

Bug fixes

v0.21.0

22 Dec 16:15
Compare
Choose a tag to compare

v0.20.0

04 Nov 07:39
Compare
Choose a tag to compare

Major changes and bug fixes

Enhancements

  • add tutorial on all available methods (#754)
  • allow seeding of simulate_for_sbi on multiple workers (#762)
  • expose enable_transforms in sampler interface (#756)
  • bugfix for building the transformation of transformed distributions (#756)

v0.19.2

30 Aug 09:20
Compare
Choose a tag to compare
  • Rely on new version of pyknos with bugfix for APT with MDNs (#734)
  • bugfix: atomic SNPE-C now allows any kind of proposal (#732)
  • bugfix for SNPE with implicit prior on GPU (#730)
  • SNPE-A has force_first_round_loss=True as default (#729)