Skip to content

Add BridgeStan wrapper#21

Open
simeoncarstens wants to merge 7 commits intomainfrom
simeon/bridge-stan-wrapper
Open

Add BridgeStan wrapper#21
simeoncarstens wants to merge 7 commits intomainfrom
simeon/bridge-stan-wrapper

Conversation

@simeoncarstens
Copy link
Member

This PR adds a BridgeStan (https://github.com/roualdes/bridgestan) wrapper to the list of PDF interface implementations. Together with tweag/chainsail#480, this allows for much faster sampling of Stan models.
This change also includes a refactoring of the chainsail_helpers.pdf.stan module into two submodules, httpstan and bridgestan, each containing the respective wrappers. This also has the advantage of making the chainsail-helpers httpstan wrapper usable without having to have BridgeStan installed (which can be a bit of a hassle).

This is because BridgeStan is not Nix-packaged yet and thus would
make for a missing import if a user uses the Nix derivation in
`examples/nix/chainsail_helpers.nix` and then only wants to use the
httpstan wrapper.
This is for BridgeStan compatibility. BridgeStan requires at least
Python 3.9.
@simeoncarstens simeoncarstens force-pushed the simeon/bridge-stan-wrapper branch from cdc764d to f96f0e3 Compare July 19, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant