You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docsrc/changes.rst
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,36 @@ What's New
7
7
8
8
For full changes, see the `Releases page <https://github.com/stan-dev/cmdstanpy/releases>`_ on GitHub.
9
9
10
+
CmdStanPy 1.2.0
11
+
---------------
12
+
- **New functionality**
13
+
14
+
- The Pathfinder algorithm (available in CmdStan 2.33+) is now availble as :meth:`CmdStanModel.pathfinder`.
15
+
- Laplace approximations (available in CmdStan 2.32+) are now available as :meth:`CmdStanModel.laplace_sample`.
16
+
- The :meth:`CmdStanModel.optimize` method now supports the ``jacobian`` boolean argument to enable change-of-variables adjustments.
17
+
When enabled, the Maximum a posteriori estimate (MAP) is returned, rather than the MLE.
18
+
- The :func:`cmdstanpy.install_cmdstan` function and script can install development versions of CmdStan using the ``git:`` prefix in the version.
19
+
20
+
- **Deprecations**
21
+
The next non-bugfix release of CmdStanPy will be version 2.0, which will remove all existing deprecations. Additional deprecations in this version:
22
+
23
+
- :class:`CmdStanModel` will *require* that it has a compiled executable after construction. The ``compile`` argument is deprecated,
24
+
(the ability to force recompilation is available under the argument ``force_compile``), and the ``compile()`` method is deprecated.
25
+
If you wish to compile Stan files independent of constructing a model, use :func:`cmdstanpy.compile_stan_file`.
26
+
- :meth:`CmdStanMLE.stan_variable` will begin returning a :class:`np.ndarray` in all cases, as opposed to the current behavior where sometimes a float is returned.
27
+
- :meth:`CmdStanVB.stan_variables` will return the _draws_ from the approximate posterior, rather than the optimized mean.
28
+
A new argument, ``mean``, can be set to True to return the mean instead. Additionally, a :class:`np.ndarray` will be returned in all cases starting in the next version.
29
+
- :meth:`CmdStanModel.variational` argument ``output_samples`` will has been renamed to ``draws``.
30
+
31
+
- **Other changes**
32
+
33
+
- A list of dictionaries is now allowed as the ``inits`` argument to :meth:`CmdStanModel.sample`.
34
+
- :func:`cmdstanpy.install_cmdstan` correctly fetches the CmdStan version for ppc64el machines.
35
+
- The documentation on how to use external C++ code was updated.
36
+
- Various other bug fixes.
37
+
38
+
.. note::
39
+
The minimum supported version for CmdStanPy is now Python 3.8.
0 commit comments