An adaptive basin-hopping Markov-chain Monte Carlo algorithm for Bayesian optimisation
Project description
An adaptive basin-hopping Markov-chain Monte Carlo algorithm for Bayesian optimisation
This is the python (v3.7) implementation of the hoppMCMC algorithm aiming to identify and sample from the high-probability regions of a posterior distribution. The algorithm combines three strategies: (i) parallel MCMC, (ii) adaptive Gibbs sampling and (iii) simulated annealing. Overall, hoppMCMC resembles the basin-hopping algorithm implemented in the optimize module of scipy, but it is developed for a wide range of modelling approaches including stochastic models with or without time-delay.
Contents
Prerequisites
Linux installation
1) Prerequisites
The hoppMCMC algorithm requires the following packages, which are not included in this package:
numpy scipy mpi4py (MPI parallelisation)
The mpi4py package is required for parallelisation; however, it can be omitted.
2) Linux installation
Easy way:
- If you have pip installed, you can use the following command to download and install the package.
pip install hoppMCMC
- Alternatively, you can download the source code from PyPI and run pip on the latest version xxx.
pip install hoppMCMC-xxx.tar.gz
Hard way:
- If pip is not available, you can unpack the package contents and perform a manual install.
tar -xvzf hoppMCMC-xxx.tar.gz cd hoppMCMC-xxx python setup.py install
This will install the package in the site-packages directory of your python distribution. If you do not have root privileges or you wish to install to a different directory, you can use the –prefix argument.
python setup.py install –prefix=<dir>
In this case, please make sure that <dir> is in your PYTHONPATH, or you can add it with the following command.
- In bash shell:
export PYTHONPATH=<dir>:$PYTHONPATH
- In c shell:
setenv PYTHONPATH <dir>:$PYTHONPATH
Credits
‘modern-package-template’ - http://pypi.python.org/pypi/modern-package-template
News
1.1
Release date: 13-Sep-2018
Fixed a bug in reading output (Python 3)
1.0
Release date: 30-Jul-2018
Compatible with Python 3
0.6
UNRELEASED
Print out the covariates in addition to the parameters
0.5
Release date: 14-Feb-2017
Minor improvement on pulsevarUpdate
0.4
Release date: 14-Oct-2015
Fixed an issue with default parameters
0.3
Release date: 09-Oct-2015
This version includes an improvement in compareAUCs
0.2
Release date: 28-Sep-2015
This version includes a documentation and examples
0.1
Release date: 28-Sep-2015
Initial commit
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hoppMCMC-1.1.tar.gz
.
File metadata
- Download URL: hoppMCMC-1.1.tar.gz
- Upload date:
- Size: 575.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/36.6.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec7ffffb8cf56e4d69a26a82f1dec81b1e25a7c3f53602171254832fce85bfa |
|
MD5 | 33ad575aea745861f04ebd977d4469cf |
|
BLAKE2b-256 | bd099a5ff4e09afc80d4412ef910ec276555b05b2466b387a4fb2e3f50b5842d |