Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BridgeStan provides efficient in-memory access through Python, Julia, and R to the methods of a Stan model.

License

BSD-3-Clause, CC-BY-4.0 licenses found

Licenses found

BSD-3-Clause
LICENSE-CODE
CC-BY-4.0
LICENSE-DOC
NotificationsYou must be signed in to change notification settings

roualdes/bridgestan

The BridgeStan logo

DOCSDOICI

BridgeStan provides efficient in-memory access through Python, Julia,Rust, and R to the methods of aStan model, includinglog densities, gradients, Hessians, and constraining and unconstrainingtransforms. The motivation was developing inference algorithms inhigher-level languages for arbitrary Stan models.

Stan is a probabilistic programming language for coding statisticalmodels. For an introduction to what can be coded in Stan, see theStan User's Guide.

BridgeStan is currently shipping with Stan version 2.37.0

Documentation is available athttps://roualdes.us/bridgestan/

Compatibility

BridgeStan has been tested with the following operating system and C++compiler combinations.

  • Linux: Ubuntu 20.04 with gcc 9.4.0
  • Apple: Mac OS X 12.2 with Apple clang 11.0.3
  • Microsoft: Windows 10 with gcc MSYS2 5.3.0

Installing BridgeStan

Installing the core of BridgeStan is as simple asinstalling a C++ toolchain(libraries, compiler, and themake command), and downloading thisrepository. To download the latest development version, you can run

git clone --recurse-submodules https://github.com/roualdes/bridgestan.git

For a full guide on installing, configuring, and using BridgeStan, consult thedocumentation

Using BridgeStan

Compiling a Stan program

To compile the Stan model intest_models/multi/multi.stan to a binaryshared object (.so file), use the following.

$ cd bridgestan$ make test_models/multi/multi_model.so

This will require internet access the first time you run it in orderto download the appropriate Stan compiler for your platform into<bridgestan-dir>/bin/stanc[.exe]

Example programs

This repository includes examples of calling Stan through BridgeStanin Python, Julia, R, Rust, and C.

Examples of other functionality can be found in thetest folder for each interface.

Software using BridgeStan

We are aware of the following projects using BridgeStan.

Julia

Python

R

Other

Research using BridgeStan

If you use BridgeStan in your research, please consider citingour JOSS paperand letting us know so we can list your project here.

Acknowledgements

The Julia and Python APIs were derived from theStan Model ServerAPI, which in turn was derived fromReddingStan.

Thanks to Sebastian Weber (GitHub@wds15)for enabling multi-threaded calls from Julia to a single Stan model instance.

Thanks to Adrian Seyboldt (GitHub@aseyboldt)for providing the Rust wrapper.

About

BridgeStan provides efficient in-memory access through Python, Julia, and R to the methods of a Stan model.

Topics

Resources

License

BSD-3-Clause, CC-BY-4.0 licenses found

Licenses found

BSD-3-Clause
LICENSE-CODE
CC-BY-4.0
LICENSE-DOC

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors12


[8]ページ先頭

©2009-2025 Movatter.jp