https://github.com/eggplantbren/twinpeaks2018
Compute partition functions.
https://github.com/eggplantbren/twinpeaks2018
bayesian-inference markov-chain-monte-carlo nested-sampling sequential-monte-carlo statistical-mechanics
Last synced: 2 months ago
JSON representation
Compute partition functions.
- Host: GitHub
- URL: https://github.com/eggplantbren/twinpeaks2018
- Owner: eggplantbren
- License: gpl-3.0
- Created: 2018-05-28T09:01:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-22T22:15:42.000Z (over 5 years ago)
- Last Synced: 2025-01-30T06:11:45.789Z (4 months ago)
- Topics: bayesian-inference, markov-chain-monte-carlo, nested-sampling, sequential-monte-carlo, statistical-mechanics
- Language: C++
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TwinPeaks2018
=============
[](https://travis-ci.org/eggplantbren/TwinPeaks2018)
[](https://www.gnu.org/licenses/gpl-3.0)A new and (hopefully) correct implementation of TwinPeaks
using the SwitchSampling idea.(c) 2018 Brendon J. Brewer.
LICENSE: GNU General Public License version 3. See the LICENSE
file for details.# Dependencies
For the C++ to compile, you'll need:
* [yaml-cpp](https://github.com/jbeder/yaml-cpp) and its dependency
[boost](https://boost.org)You can probably get these from your operating system's package manager.
You'll also need the C++ header files, which are sometimes put into a
separate package with the suffix -dev or -devel. For example, on Ubuntu, this
will do the trick:```
sudo apt-get install libboost-all-dev libyaml-cpp-dev
```On the Python side, you'll need:
* Python 3 and some packages (numpy, matploblib, and pandas).
[Anaconda](https://www.anaconda.com)
is a good Python distribution that includes these. Otherwise they might come
with (or be installable through) Python 3 as provided by your OS.
* [LaTeX](https://tug.org/texlive) and [dvipng](https://sourceforge.net/projects/dvipng/) so that LaTeX can be used with matplotlib.# Compilation
First, compile the C++:
```make```
Then install the python package:
```
cd python
python3 setup.py install
```# Execution
To run the demo example:```
./main
```Then wait a long time. At any time during the run (or after it's completed),
you can execute```
python3 showresults.py
```to see the results.
# Acknowledgements
The authors of [this paper](https://arxiv.org/abs/1805.03924).