Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,79 @@
# v0.23.0

## Announcements

- Re-licensing: license change from
[AGPLv3](https://www.gnu.org/licenses/agpl-3.0.en.html) to
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0) (see #997 for
details)
- `sbi` is now affiliated with [`NumFOCUS`](https://numfocus.org) 🎉
- New contributors 🎉: @anastasiakrouglova, @theogruner, @felixp8, @Matthijspals,
@jsvetter, @pfuhr, @turnmanh, @fariedabuzaid, @augustes, @zinastef, @Baschdl,
@danielmk, @lisahaxel, @janko-petkovic, @samadpls, @ThomasGesseyJonesPX, @schroedk

## Major Changes and New Features

- change `sbi` default parameters: `training_batch_size=200`, `num_chains=20` (#1221,
@janfb)
- more flexible API and shape handling for density estimator classes (#952, #965, #979,
#1151) (@gmoss13, @tomMoral, @manualgloeckler)
- vectorized sampling and log_prob for `(S)NPE` given batches of x (#1153)
(@manuelgloeckler, @deismic)
- batched sampling for vectorized MCMC samplers (#1176, #1210) (@gmoss13, @janfb)
- support @zuko as a backend for normalizing flows (#1088, #1116)
(@anastasiakrouglova)
- local c2st metric (#1109) (@JuliaLinhart)
- tarp coverage metric (#1106) (@psteinb)
- add interface for @PyMC samplers (#1053) (@famura, @felixp8)
- big refactoring of plotting utilities, new tutorial (#1084) (@Matthijspals)
- flow matching density estimators (#1049) (@turnmanh, @fariedabuzaid, @janfb)
- score matching density estimators (#1015) (@rdgao, @jsvetter, @pfuhr,
@manuelgloeckler, @deismic, @janfb)
- ABC methods for trial-based data using statistical distances (#1104)
(@theogruner)
- improved tutorials and website documentation (#1012, #1051, #1073) (@augustes,
@zinaStef, @lisahaxel, @psteinb)
- improved website structure and contribution guides (#1019) (@tomMoral, @janfb)
- support Apple MPS as gpu device (#912) (@janfb)
- dev container for using `sbi` in codespaces on GitHub (#1070) (@turnmanh)
- enable importance sampling for likelihood-based estimators (#1183) (@manuelgloeckler)
- refactoring and unified shape handling for `RatioEstimator` (#1097) (@bkmi)
- faster sbc and tarp calibration checks via batched sampling (#1196) (@janfb)
- batched sampling and embedding net support for `MNLE` (#1203) (@janfb)
- better plotting options for coverage plots (#1039, #1212) (@janfb)
- drop support for python3.8 and torch1.12 (#1233)
- refactor folder structure and naming of `neural_nets`, and all inferences classes
(#1237, #1238)

## Bug Fixes

- bugfix for embedding net tutorial (#1159) (@deismic)
- Fixup for process_x in EnsemblePosterior (#1148) (@deismic)
- fixed notebook by changing MCMC parameters (#1058) (@zinaStef)
- fix: add NeuralPosteriorEnsemble to utils.__init__ (#1002) (@jnsbck)
- fix: print_false_positive_rate (#976) (@danielmk)
- fix: require potential_fn as Callable to make posteriors pickable (#943)
(@deismic)
- fix: make VIPosterior pickable (#951) (@manuelgloeckler)
- fix: bug in importance sampled posterior (#1081) (@max-dax)
- fix: embedding device and warning handling (#1186) (@janfb)
- fix: c2st with constant features (#1204) (@janfb)
- Fix erroneous warnings about different devices (#1225, @ThomasGesseyJonesPX)
- Fix type annotation in class 'ConditionedPotential` (#1222, @schroedk)

## Maintenance and other changes

- add pre-commit hooks (#955) (@janfb)
- add ruff to replace `isort`, `black`, `flake` (#960, #978, #1113) (@janfb)
- switch to `pyproject.toml` for package specification (#941) (@janfb)
- Split the GitHub workflow in CI and CD (#1063) (@famura)
- split linting process from the CI/CD workflow (#1164) (@tomMoral)
- adapt `MNLE` to new densitye stimator abstraction (#1089) (@coschroeder)
- Switch to the newest `pyright` and fix all typing errors (#1045, #1108) (@Baschdl)
- introduce two docs versions: `latest` pointing to latest release at
https://sbi-dev.github.io/sbi/latest/ and `dev` pointing to the latest version on
`main` https://sbi-dev.github.io/sbi/dev/

# v0.22.0

## API change
Expand All @@ -7,6 +83,7 @@
- `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)
Expand Down
2 changes: 1 addition & 1 deletion sbi/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

VERSION = (0, 22, 0)
VERSION = (0, 23, 0)

__version__ = ".".join(map(str, VERSION))
3 changes: 3 additions & 0 deletions sbi/diagnostics/lc2st.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from typing import Any, Callable, Dict, List, Optional, Tuple, Union

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion sbi/inference/posteriors/ensemble_posterior.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from typing import List, Optional, Tuple, Union

Expand Down
2 changes: 1 addition & 1 deletion sbi/neural_nets/estimators/mixed_density_estimator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from typing import Tuple

Expand Down
2 changes: 1 addition & 1 deletion sbi/neural_nets/factory.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>


from typing import Any, Callable, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion sbi/neural_nets/net_builders/categorial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from typing import Optional

Expand Down
2 changes: 1 addition & 1 deletion sbi/sbi_types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from typing import NewType, Optional, Sequence, Tuple, TypeVar, Union

Expand Down
2 changes: 1 addition & 1 deletion tests/lc2st_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tests/linearGaussian_fmpe_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tests/ratio_estimator_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from __future__ import annotations

Expand Down