Dynesty

Latest version: v2.1.4

Safety actively analyzes 687959 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

1.2.0

This version has multiple changes that should improve stability and speed. The default dynamic sampling behaviour has been changed to focus on the effective number of posterior samples as opposed to KL divergence. The rstagger sampler has been removed and the default choice of the sampler may be different compared to previous releases depending on the dimensionality of the problem. dynesty should now provide 100% reproduceable results if the rstate object is provided. It needs to be a new generation Random Generator (as opposed to numpy.RandomState).

Most of the changes in the release have been contributed by [Sergey Koposov](https://github.com/segasai) who has joined the dynesty project.

Added

- Saving likelihood. It is now possible to save likelihood calls history during sampling into HDF5 file (this is not compatible with parallel sampling yet). The relevant options are save_history=False, history_filename=None (235)
- add_batch() function now has the mode parameter that allows you to manually chose the logl range for the batch (328)

Changed

- More testing with code coverage of >90% + validation on test problems
- Internal refactoring reducing code duplication (saved_run, integral calculations, different samplers etc)
- Multiple speed-ups: ellipsoid bounds, bootstrap, jitter_run (239, 256, 329)
- Exception is raised if unknown arguments are provided for static/dynamic samplers (295)

- Migrate to new numpy random generator functionality from RandomState (280)
- Make dynesty fully deterministic if random state is provided (292)

- Remove the pointvol parameter used in internal calculations, such as ellipsoid splits (284)
- Get rid of vol_dec parameter (286)
- Improve bounding ellipsoids algorithms, for example how we are dealing with degenerate ellipsoids (264, 268)
- Introduce more stable multi-ellipsoidal splitting using BIC (286)

- Do not use KL divergence function for stopping criteria based on posterior, instead use the criterion based on the number of effective samples. The old behaviour can still be achieved by using the dynesty.utils.old_stopping_function (332)
- Fix bugs in dynamic sampling that can lead to sampler not finding points in the interval (244)
- Major refactor of rslice/slice sampling increasing its stability (269, 271)
- Disable ncdim when slice sampling (271)
- Change the defaults for slices/walks/bootstrap (vs number of dimensions) (297)
- Change default samplers (vs ndim, i.e. use rslice for high dimensions) (286)
- Remove rstagger sampler, as it was producing incorrect results/based on non-Markovian chains (322)
- Fix rwalk sampler. Previously the chains were not Markovian (319, 323, 324)
- Change step adaptation of rwalk and rslice (260, 323)
- Change the calculation of evidence uncertainties, remove factor the unnecessary factor two, and improve numerical stability of calculations (306, 360)
- Refactor the addition of batches in dynamic sampling, preventing possibly infinite loop (326)
- Improve stability of resample_equal (351)
- New Results interface with a dedicated object, rather than a wrapper around the dictionary (330)

1.1.0

- Improved behavior and stability of the bounding distributions (with
`Sergey Koposov <https://github.com/segasai>`_ and
`Johannes Buchner <https://github.com/johannesbuchner>`_).

- Added support for specifying the number of clustering dimensions (`'ncdim'`)
in case these may differ from the number of prior dimensions (`'npdim'`)
(with `Colm Talbot <https://github.com/ColmTalbot>`_).

- Fixed a bug where ``dynesty`` was not properly enforcing nested sampling's
monotonically-increasing likelihood condition when sampling
(with `Colm Talbot <https://github.com/ColmTalbot>`_).

- Improved ability to save sampler objects to disk to backup progress (with
`Patrick Sheehan <https://github.com/psheehan>`_ and
`Alex Nitz <https://github.com/ahnitz>`_).

- Limited support for user-defined proposal strategies (with
`Gregory Ashton <https://github.com/GregoryAshton>`_).

- Additional small bugfixes, references, and documentation updates.

1.0.1

Changed
- Small quality-of-life improvements to plotting.

- Added citation tool.

1.0.0

Changed
- Added support for period and reflective boundaries (with
`Gregory Ashton <https://github.com/GregoryAshton>`_).

- Added support for interactive progress bar (with
`Daniel Foreman-Mackey <https://github.com/dfm>`_).

- Added support for stopping criterion based on ESS (with
`Colm Talbot <https://github.com/ColmTalbot>`_).

- Small bugfixes to code and documentation.

- Small quality-of-life improvements.

0.9.7

Changed
- Ensemble bounds can now adapt to elongated distributions (with
`Johannes Buchner <https://github.com/JohannesBuchner>`_).

- Random walks now behave differently near boundaries (with
`Gregory Ashton <https://github.com/GregoryAshton>`_).

- Pickling sampler states should now work better in Python 3 (with
`Dustin Lang <https://github.com/dstndstnr>`_.

- Doubled output errors in default approximation in line with theoretical
expectations.

- Small bugfixes and docfixes (with
`Patricio Cubillos <https://github.com/dstndstnr>`_).

0.9.5.3

Changed
- Various small bugfixes, with contributions by
`Gregory Ashton <https://github.com/GregoryAshton>`_ and
`Johannes Buchner <https://github.com/JohannesBuchner>`_.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.