Published November 13, 2019
| Version v0.1.2
Software
Open
matt-graham/mici: v0.1.2
Description
Minor release with sampling efficiency improvements, new facility for tracking the number of model function calls during sampling, improved robustness to use of non-NumPy arrays, and miscellaneous bug fixes.
- In constrained leapfrog integrator some derivatives of quantities are now pre-evaluated before the associated quantity is evaluated as often the quantity itself will be calculated alongside the derivative and cached. The resulting reduction in the number of model function evaluations provides a small gain in sampling efficiency in models where it applies.
- Chain state objects now optionally may be initialised with a
_count_callsdictionary object which will be used to record the number of calls to system methods decorated with thecache_in_stateandmulti_cache_in_statedecorators. This can be used to give a hardware independent measure of the operation cost of a sampling run. - Code has been refactored to remove explicit dependence on the in-place semantics of the augmented assignment operators such as
+=when acting on NumPy arrays. NumPy array like objects such as JAXDeviceArrayinstances do not perform updates in place, instead creating a new array object, meaning relying on such operations happening in place was silently failing when using such arrays. - An non-guarded dependence on a decorator imported from
autogradin theautograd_wrappermodule has now been fixed meaning the package can be imported withoutautogradbeing installed as intended. - Progress bar styling in Jupyter notebooks has been updated to remove the dependence on CSS variables defined in the
ipywidgetsstylesheets, instead now using explicit values.
Files
matt-graham/mici-v0.1.2.zip
Files
(4.0 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:1743fbfcfcd3948bee0d4b1ef1581a71
|
4.0 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/matt-graham/mici/tree/v0.1.2 (URL)