BridgeStan provides efficient in-memory access through Python, Julia, and R to the methods of a Stan model.
BSD-3-CLAUSE License
Bot releases are visible (Hide)
warn
to each constructor to control re-load warnings by @WardBrian in https://github.com/roualdes/bridgestan/pull/218
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.3.0...v2.4.0
Published by github-actions[bot] 11 months ago
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.2.2...v2.3.0
Published by github-actions[bot] 12 months ago
log_density(propto=True)
by @WardBrian in https://github.com/roualdes/bridgestan/pull/180
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.2.1...v2.2.2
Published by github-actions[bot] about 1 year ago
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.2.0...v2.2.1
Published by github-actions[bot] about 1 year ago
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.1.2...v2.2.0
Published by github-actions[bot] over 1 year ago
make
config by @aseyboldt in https://github.com/roualdes/bridgestan/pull/152
set_bridgestan_path
in examples by @WardBrian in https://github.com/roualdes/bridgestan/pull/157
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.1.1...v2.1.2
Published by github-actions[bot] over 1 year ago
This change only impacts Python users on Windows
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.1.0...v2.1.1
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/roualdes/bridgestan/compare/v2.0.0...v2.1.0
Published by github-actions[bot] over 1 year ago
This version of BridgeStan features several breaking changes, primarily to the C API which is used "under the hood", but also to how models with generated quantities must be called. Additionally, many "quality of life" features have been added, ranging from const
correctness in the C API, to vastly improved error messages in the interfaces.
The BridgeStan documentation has been updated, and old versions of the docs are now available via a dropdown at the top of each page.
param_constrain
family of functions now accept an rng
argument of type StanRNG
. This is required if include_gq
is set in the function, otherwise it may be omitted. These RNGs are now used in any RNG function calls inside the generated quantities
block, rather than using an RNG stored inside the BridgeStan model object.param_constrain
function is now thread-safe if each thread has its own StanRNG
. See the documentation for your preferred interface for more on how to instantiate StanRNG
s.print()
statements inside of Stan models will now be directed to stdout
instead of stderr
.print()
statements inside of Stan models are re-directed to sys.stdout
by default to allow them to appear in things like Jupyter notebooks. See the capture_stan_prints
argument to the StanModel constructor for more details.param_constrain
, the bs_model_rng
type has been split into two types, bs_model
and bs_rng
. The creation and destruction functions have been renamed to bs_model_construct
/bs_rng_construct
and bs_model_destruct
/bs_rng_desctruct
.param_constrain
function accepts a new bs_rng*
argument, which can be NULL
if include_gq
is false.char **
. If a non-null pointer is provided, it will be set to a newly allocated error message string if a failure occurs. Error messages are no longer printed to stderr
. These strings must later be freed by calling a new function bs_free_error_msg
.bs_model*
arguments as const
where appropriate. With the param_constrain
changes, this means all functions except for bs_model_destruct
take a const
pointer now.bs_major_version
, bs_minor_version
, bs_patch_version
.bs_model_construct
function can now be NULL
, indicating "no data".bs_set_print_callback
is available. This can be used to provide a function which is called when print
statements in the Stan model are run. This is primarily used in the Python interface to re-direct to sys.stdout
.stdbool.h
header file's bool
type, rather than typedef int bool
Full Changelog: https://github.com/roualdes/bridgestan/compare/v1.0.2...v2.0.0
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/roualdes/bridgestan/compare/v1.0.1...v1.0.2
Published by github-actions[bot] over 1 year ago
The major changes for this version are that the Python interface is available on PyPI (https://pypi.org/project/bridgestan/) and the Julia interface is being added to the Julia General Registry (pending a 3-day waiting period).
Full Changelog: https://github.com/roualdes/bridgestan/compare/v1.0.0...v1.0.1
Published by WardBrian almost 2 years ago
The initial release of BridgeStan.
BridgeStan provides efficient in-memory access through Python, Julia, and R to the methods of a Stan model, including log densities, gradients, Hessians, and constraining and unconstraining transforms.
Check out the documentation at https://roualdes.github.io/bridgestan/