diff --git a/CHANGELOG.md b/CHANGELOG.md index a9f8d9986..1b209e753 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,28 +2,31 @@ ## Bug Fixes -- fixup for failing hmc test by @michaeldeistler in https://github.com/sbi-dev/sbi/pull/1247 -- fix: make RestrictedPrior a distribution to enable log_prob @janfb in https://github.com/sbi-dev/sbi/pull/1257 -- fix: npe iid handling by @janfb in https://github.com/sbi-dev/sbi/pull/1262 -- fix: tutorials test error handling, fix bugs in tutorials by @janfb in https://github.com/sbi-dev/sbi/pull/1264 -- fix #1260: include points in plotting limits by @janfb in https://github.com/sbi-dev/sbi/pull/1265 -- fix: conditioned potential error handling by @janfb in https://github.com/sbi-dev/sbi/pull/1275 +- fixup for failing hmc test by @michaeldeistler (#1247) +- fix: make RestrictedPrior a distribution to enable log_prob @janfb (#1257) +- fix: npe iid handling by @janfb (#1262) +- fix: tutorials test error handling, fix bugs in tutorials by @janfb (#1264) +- fix #1260: include points in plotting limits by @janfb (#1265) +- fix: conditioned potential error handling by @janfb, @michaeldeistler (#1275, #1289) +- fix: Allow 1D pytorch distributions by @michaeldeistler (#1286) ## Documentation -- Rename SNPE to NPE in the README by @michaeldeistler in https://github.com/sbi-dev/sbi/pull/1248 -- update pickling FAQ by @michaeldeistler in https://github.com/sbi-dev/sbi/pull/1255 -- Adding example for custom DataLoader to tutorial 18 by @psteinb in https://github.com/sbi-dev/sbi/pull/1256 -- docs: add readme intro to docs landing page by @janfb in https://github.com/sbi-dev/sbi/pull/1272 +- Rename SNPE to NPE in the README by @michaeldeistler (#1248) +- update pickling FAQ by @michaeldeistler (#1255) +- Adding example for custom DataLoader to tutorial 18 by @psteinb (#1256) +- docs: add readme intro to docs landing page by @janfb (#1272) +- Change sampling method for LC2ST to `sample_batched()` by @JuliaLinhart (#1279) ## Maintenance -- Refactor simulate_for_sbi location by @samadpls in https://github.com/sbi-dev/sbi/pull/1253 -- build: devcontainer update by @janfb in https://github.com/sbi-dev/sbi/pull/1252 -- fix: docker notebook python version by @janfb in https://github.com/sbi-dev/sbi/pull/1258 -- refactor: remove outputs except plots from tutorials. by @janfb in https://github.com/sbi-dev/sbi/pull/1266 -- build: automatic nb stripping and pypi upload by @janfb in https://github.com/sbi-dev/sbi/pull/1267 -- refactor: remove deprecated x_shape where not needed. by @janfb in https://github.com/sbi-dev/sbi/pull/1271 +- 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 diff --git a/tests/lc2st_test.py b/tests/lc2st_test.py index abe51c8f6..e1e445bac 100644 --- a/tests/lc2st_test.py +++ b/tests/lc2st_test.py @@ -197,7 +197,7 @@ def test_lc2st_false_positiv_rate(method): # use big num_train and num_epochs to obtain "good" estimator # (convergence of the estimator) - num_train = 1_000 + num_train = 5_000 num_epochs = 200 num_cal = 1_000 diff --git a/tests/linearGaussian_fmpe_test.py b/tests/linearGaussian_fmpe_test.py index a5a2603af..804ea46fb 100644 --- a/tests/linearGaussian_fmpe_test.py +++ b/tests/linearGaussian_fmpe_test.py @@ -287,8 +287,8 @@ def simulator(theta): # Evaluate the conditional density be drawing samples and smoothing with a Gaussian # kde. potential_fn, theta_transform = posterior_estimator_based_potential( - posterior_estimator, prior=prior - ).set_x(x_o, x_is_iid=False) + posterior_estimator, prior=prior, x_o=x_o + ) ( conditioned_potential_fn, restricted_tf, diff --git a/tests/linearGaussian_snpe_test.py b/tests/linearGaussian_snpe_test.py index ac76ab2d4..51dec56f6 100644 --- a/tests/linearGaussian_snpe_test.py +++ b/tests/linearGaussian_snpe_test.py @@ -558,8 +558,8 @@ def simulator(theta): # Evaluate the conditional density be drawing samples and smoothing with a Gaussian # kde. potential_fn, theta_transform = posterior_estimator_based_potential( - posterior_estimator, prior=prior - ).set_x(x_o, x_is_iid=False) + posterior_estimator, prior=prior, x_o=x_o + ) ( conditioned_potential_fn, restricted_tf,