-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from eth-cscs/release-0.6.0
Release 0.6.0
- Loading branch information
Showing
91 changed files
with
5,772 additions
and
2,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[run] | ||
branch = True | ||
source = abcpy | ||
|
||
[report] | ||
exclude_lines = | ||
if self.debug: | ||
pragma: no cover | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
if False: | ||
except ImportError: | ||
if not has_torch: | ||
ignore_errors = True | ||
omit = | ||
tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include requirements.txt | ||
include requirements/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ABCpy [![Documentation Status](https://readthedocs.org/projects/abcpy/badge/?version=latest)](http://abcpy.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://travis-ci.org/eth-cscs/abcpy.svg?branch=master)](https://travis-ci.org/eth-cscs/abcpy) | ||
# ABCpy [![Documentation Status](https://readthedocs.org/projects/abcpy/badge/?version=latest)](http://abcpy.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://travis-ci.org/eth-cscs/abcpy.svg?branch=master)](https://travis-ci.org/eth-cscs/abcpy) [![codecov](https://codecov.io/gh/eth-cscs/abcpy/branch/master/graph/badge.svg)](https://codecov.io/gh/eth-cscs/abcpy) [![DOI](https://zenodo.org/badge/doi/10.1145/3093172.3093233.svg)](http://dx.doi.org/10.1145/3093172.3093233) [![GitHub license](https://img.shields.io/github/license/eth-cscs/abcpy.svg)](https://github.com/eth-cscs/abcpy/blob/master/LICENSE) [![PyPI version shields.io](https://img.shields.io/pypi/v/abcpy.svg)](https://pypi.python.org/pypi/abcpy/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/abcpy.svg)](https://pypi.python.org/pypi/abcpy/) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/eth-cscs/abcpy/master?filepath=examples) | ||
|
||
ABCpy is a scientific library written in Python for Bayesian uncertainty quantification in | ||
absence of likelihood function, which parallelizes existing approximate Bayesian computation (ABC) | ||
|
@@ -27,21 +27,52 @@ scientists by providing | |
# Documentation | ||
For more information, check out the | ||
|
||
* [Documentation](http://abcpy.readthedocs.io/en/v0.5.7) | ||
* [Examples](https://github.com/eth-cscs/abcpy/tree/v0.5.7/examples) directory and | ||
* [Reference](http://abcpy.readthedocs.io/en/v0.5.7/abcpy.html) | ||
* [Documentation](http://abcpy.readthedocs.io/en/v0.6.0) | ||
* [Examples](https://github.com/eth-cscs/abcpy/tree/v0.6.0/examples) directory and | ||
* [Reference](http://abcpy.readthedocs.io/en/v0.6.0/abcpy.html) | ||
|
||
|
||
Further, we provide a | ||
[collection of models](https://github.com/eth-cscs/abcpy-models) for which ABCpy | ||
has been applied successfully. This is a good place to look at more complicated inference setups. | ||
|
||
# Quick installation and requirements | ||
|
||
|
||
ABCpy can be installed from `pip`: | ||
|
||
pip install abcpy | ||
|
||
Check [here](https://abcpy.readthedocs.io/en/latest/installation.html) for more details. | ||
|
||
Basic requirements are listed in `requirements.txt`. That also includes packages required for MPI parallelization there, which is very often used. However, we also provide support for parallelization with Apache Spark (see below). | ||
|
||
Additional packages are required for additional features: | ||
|
||
- `torch` is needed in order to use neural networks to learn summary statistics. It can be installed by running `pip install -r requirements/neural_networks_requirements.txt` | ||
- In order to use Apache Spark for parallelization, `findspark` and `pyspark` are required; install them by `pip install -r requirements/backend-spark.txt` | ||
|
||
## Troubleshooting `mpi4py` installation | ||
|
||
`mpi4py` requires a working MPI implementation to be installed; check the [official docs]((https://mpi4py.readthedocs.io/en/stable/install.html)) for more info. On Ubuntu, that can be installed with: | ||
|
||
sudo apt-get install libopenmpi-dev | ||
|
||
Even when that is present, running `pip install mpi4py` can sometimes lead to errors. In fact, as specified in the [official docs]((https://mpi4py.readthedocs.io/en/stable/install.html)), the `mpicc` compiler needs to be in the search path. If that is not the case, a workaround is: | ||
|
||
env MPICC=/path/to/mpicc pip install mpi4py | ||
|
||
In some cases, even the above may not be enough. A possibility is using `conda` (`conda install mpi4py`) which usually handles package dependencies better than `pip`. Alternatively, you can try by installing directly `mpi4py` from the package manager; in Ubuntu, you can do: | ||
|
||
sudo apt install python3-mpi4py | ||
|
||
which however does not work with virtual environments. | ||
|
||
|
||
# Author | ||
ABCpy was written by [Ritabrata Dutta, Warwick | ||
University](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/dutta/) | ||
and [Marcel Schoengens]([email protected]), CSCS, ETH Zurich, and we're | ||
actively developing it. Please feel free to submit any bugs or feature requests. | ||
We'd also love to hear about your experiences with ABCpy in general. Drop us an | ||
email! | ||
University](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/dutta/) and [Marcel Schoengens]([email protected]), CSCS, ETH Zurich, and presently actively maintained by [Lorenzo Pacchiardi, Oxford University](https://github.com/LoryPack) and [Ritabrata Dutta, Warwick | ||
University](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/dutta/). Please feel free to submit any bugs or feature requests. We'd also love to hear about your experiences with ABCpy in general. Drop us an email! | ||
|
||
We want to thank [Prof. Antonietta Mira, Università della svizzera | ||
italiana](https://search.usi.ch/en/people/f8960de6d60dd08a79b6c1eb20b7442b/Mira-Antonietta), | ||
|
@@ -53,19 +84,24 @@ finally CSCS (Swiss National Super Computing Center) for their generous support. | |
|
||
## Citation | ||
|
||
There is a paper in the proceedings of the 2017 PASC conference. In case you use | ||
There is a [paper](http://dx.doi.org/10.1145/3093172.3093233) in the proceedings of the 2017 PASC conference. In case you use | ||
ABCpy for your publication, we would appreciate a citation. You can use | ||
[this](https://github.com/eth-cscs/abcpy/blob/v0.5.6/doc/literature/DuttaS-ABCpy-PASC-2017.bib) | ||
|
||
BibTex reference. | ||
[this](https://github.com/eth-cscs/abcpy/blob/v0.5.6/doc/literature/DuttaS-ABCpy-PASC-2017.bib) BibTex reference. | ||
|
||
|
||
## Other Refernces | ||
## Other References | ||
|
||
Publications in which ABCpy was applied: | ||
|
||
* L. Pacchiardi, P. Künzli, M. Schöngens, B. Chopard, R. Dutta, "Distance-Learning for Approximate Bayesian | ||
Computation to Model a Volcanic Eruption", 2020, Sankhya B, ISSN 0976-8394, | ||
* R. Dutta, K. Zouaoui-Boudjeltia, C. Kotsalos, A. Rousseau, D. Ribeiro de Sousa, J. M. Desmet, | ||
A. Van Meerhaeghe, A. Mira, and B. Chopard. "Interpretable pathological test for Cardio-vascular | ||
disease: Approximate Bayesian computation with distance learning.", 2020, arXiv:2010.06465. | ||
|
||
* R. Dutta, S. Gomes, D. Kalise, L. Pacchiardi. "Using mobility data in the design of optimal | ||
lockdown strategies for the COVID-19 pandemic in England.", 2020, arXiv:2006.16059. | ||
|
||
* L. Pacchiardi, P. Künzli, M. Schöngens, B. Chopard, R. Dutta, "Distance-Learning for | ||
Approximate Bayesian Computation to Model a Volcanic Eruption", 2020, Sankhya B, ISSN 0976-8394, | ||
[DOI: 10.1007/s13571-019-00208-8](https://doi.org/10.1007/s13571-019-00208-8). | ||
|
||
* R. Dutta, J. P. Onnela, A. Mira, "Bayesian Inference of Spreading Processes | ||
|
@@ -79,11 +115,10 @@ Publications in which ABCpy was applied: | |
Computation with High Performance Computing", 2018, Frontiers in physiology, 9. | ||
|
||
* A. Ebert, R. Dutta, P. Wu, K. Mengersen and A. Mira, "Likelihood-Free | ||
Parameter Estimation for Dynamic Queueing Networks", 2018, arXiv:1804.02526 | ||
Parameter Estimation for Dynamic Queueing Networks", 2018, arXiv:1804.02526. | ||
|
||
* R. Dutta, M. Schoengens, A. Ummadisingu, N. Widerman, J. P. Onnela, A. Mira, "ABCpy: A | ||
High-Performance Computing Perspective to Approximate Bayesian Computation", | ||
2017, arXiv:1711.04694 | ||
High-Performance Computing Perspective to Approximate Bayesian Computation", 2017, arXiv:1711.04694. | ||
|
||
## License | ||
ABCpy is published under the BSD 3-clause license, see [here](LICENSE). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.7 | ||
0.6.0 |
Oops, something went wrong.