Skip to main content

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
--------

1) Prerequisites
2) 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
---------------------

1) 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

2) 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

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

hoppmcmc-2.0.0.tar.gz (591.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hoppmcmc-2.0.0-py3-none-any.whl (590.6 kB view details)

Uploaded Python 3

File details

Details for the file hoppmcmc-2.0.0.tar.gz.

File metadata

  • Download URL: hoppmcmc-2.0.0.tar.gz
  • Upload date:
  • Size: 591.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for hoppmcmc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3ceec9bba227bcbd09ecadb008e96ce4c39f29f8e66fa6c12004114bd1137a5c
MD5 f426846a61279211e21b7267375590df
BLAKE2b-256 36b396080d55504d0b69f92c198a8e8c76646a0d7af8f56cbeb7ac84ee907829

See more details on using hashes here.

File details

Details for the file hoppmcmc-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: hoppmcmc-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 590.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for hoppmcmc-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ea18a1bd4a6c43b7872f8621c6f00ea348ad62936a48f45dd8ed121135a133
MD5 ad0a4e5487b0620ba41c5e93cb7df9bd
BLAKE2b-256 8a103b7d2ab96dbcb3462289b662ee4875153376b5edc19e3eb20af09def8fb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page