HMC Lab is a numerical laboratory for research in Bayesian seismology, written in Python and Julia. Jump to Docker one-command setup.
It provides all the ingredients to set up probabilistic (and deterministic) inverse problems, appraise them, and analyse them. This includes a plethora of prior distributions, different physical modelling modules and various MCMC (and other) algorithms.
In particular it provides prior distributions, physics and appraisal algorithms.
Prior distributions:
Physics:
Algorithms:
To get staerting with the tutorial and example notebooks, one can use a single command in Docker. This will pull a Docker image based on the Jupyter Datascience stack. The final container is approximately 5GB.
docker run -p 9123:9123 larsgebraad/hmclab \
start-notebook.sh --NotebookApp.token='hmclab' \
--NotebookApp.port='9123' --LabApp.default_url='/lab/tree/Home.ipynb'
Then either copy-past the link from your terminal, or navigate manually to http://127.0.0.1:9123/lab/tree/Home.ipynb?token=hmclab.
All tutorial notebooks can also be accessed online in a non-interactive fashion. Simply use https://python.hmclab.science or use the following links:
Tutorials:
Demos:
For full installation instructions, including creating a proper Python environment, see the installation instructions.
Start with making sure that you have HDF5 or h5py installed properly.
Directly to your environment:
pip install -e git+git@github.com:larsgeb/hmclab.git@master#egg=hmclab
From the project root directory:
pip install -e .
If you want to develop within this repo, we recommend a few extra packages. They can also be installed using pip.
In Bash:
pip install -e git+git@github.com:larsgeb/hmclab.git@master#egg=hmclab[dev] # from github repo
pip install -e .[dev] # from local clone
... or Zsh (which requires escapes for brackets):
pip install -e git+git@github.com:larsgeb/hmclab.git@master#egg=hmclab\[dev\] # from github repo
pip install -e .\[dev\] # from local clone