Note: additional release candidates were just posted, see the replies for more information
I am happy to announce that the latest release candidates of Cmdstan and Stan are now available on Github!
This release cycle brings several improvements to the headline features of the last release - tuple types and the Pathfinder algorithm - new distributions, and other improvements.
You can find the release candidate for cmdstan here. Instructions for installing are given at the bottom of this post.
Please test the release candidate with your models and report if you experience any problems. We also kindly invite you to test the new features and provide feedback. If you feel some of the new features could be improved or should be changed before the release, please do not hesitate to comment.
The Stan development team appreciates your time and help in making Stan more efficient while maintaining a high level of reliability.
If everything goes according to plan, the 2.35 version will be released next week.
Below are some of the highlights of the new release.
Bail out with fatal_error()
There is a new statement type: fatal_error
. This looks a lot like print
or reject
, but will immediately terminate the algorithm rather than being used to signal a divergence.
A new RNG used internally
Stan now uses the boost::mixmax
pRNG for generating random numbers internally. The primary consequence of this for most users is that seeds from previous versions will not yield the same numerical results on this version.
As per usual, exact reproducibility requires a fixed version of Stan, but this change is larger than normal, hence it being noted here.
Improved CmdStan outputs
Several new output options are available for CmdStan to produce JSON files for easier processing.
- The
diagnostic_file
argument for the Laplace approximation sampler will now give a JSON output which contains the Hessian of the mode - The
laplace
method now supports thecalculate_lp
argument, similar to Pathfinder in the previous release. - Pathfinder will no longer return more draws than requested in certain circumstances.
New distributions
This release saw the extension of the wiener_lpdf
distribution to a version with 7 parameters by @Franzi. They have a write-up here. Existing signatures are unchanged.
Deprecations
The keyword jacobian
is being reserved for use within the Stan language in a future version.
Bug fixes!
This release also contains a large number of bug fixes across all levels of the Stan ecosystem. Some details are available in the preliminary release notes
How to install?
Download the tar.gz file from the link above, extract it and use it the way you use any Cmdstan release. We also have an online Cmdstan guide available at CmdStan Userâs Guide
If you are using cmdstanpy you can install the release candidate using
cmdstanpy.install_cmdstan(version='2.35.0-rc3')
With CmdStanR you can install the release candidate using
cmdstanr::install_cmdstan(version = "2.35.0-rc3", cores = 4)