pyREVS: python Rare-EVent Sampling package
Overview
Rare-events algorithms are powerful techniques allowing to sample rare occurrences of a computational model at a much lower cost than brute force Monte-Carlo. However, running such algorithms on models featuring more than a handfull of dimensions become cumbersome as both compute and memory requirements increase. pyREVS is a modular implementation of rare-event algorithms, initially focused on adaptive multilevel splitting (AMS) and its TAMS variant introduced by Lestang et al., aiming at alleviating the difficulty of performing rare event algorithms on high-dimensional systems such as the ones encountered in geophysical or engineering applications. The package is built from basic building blocks that can be used to implement new rare-event algorithms.
Installation
To install pyREVS from GitHub repository, do:
git clone git@github.com:nlesc-eTAOC/pyREVS.git
cd pyREVS
python -m pip install .
Note that the latest version of pyREVS is available on PyPI here
and can be installed with pip install pyrevs, but built-in examples are not readily available using
the PyPI version.
To run the example cases shipped with pyREVS, additional dependencies are required. To install the examples dependencies, run:
python -m pip install .[exec]
You can check that the package was successfully installed using:
pyrevs_check
Quick start
To get started with pyREVS, let's have a look at the classical double-well potential case. Although it is not a high-dimensional system, it provides a good overview of pyREVS capabilities. A 2D version of the double-well is available in the examples folder. To run the case, simply do:
cd examples/DoubleWell2D
python sample_dw2dim.py
This minimal example runs the TAMS 10 times in order to get an estimate of the transition probability as well as the corresponding relative error. For a more in-depth explanation about this case, setting up the model and running the simulations, have a look at the tutorial here.
Documentation
pyREVS documentation is hosted on GitHub here
Contributing
If you want to contribute to the development of pyREVS, have a look at the contribution guidelines.
Acknowledgements
The development of pyREVS was supported by the Netherlands eScience Center in collaboration with the Institute for Marine and Atmospheric research Utrecht IMAU.
This package was created with Cookiecutter and the NLeSC/python-template.
Metadata
Release files for pyrevs 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrevs-1.1.0.tar.gz | 85.3 kB | Without provenance | Details for pyrevs-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrevs-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyrevs-1.1.0-py3-none-any.whl |
Total release size: 172.9 kB
Release files / pyrevs-1.1.0.tar.gz
| Download URL | pyrevs-1.1.0.tar.gz |
|---|---|
| Size | 85.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2ace25bfbac2d778886efcf56aded17ccb2829b3ac3b27e43b638060f6359a8
|
|
BLAKE2b-256 checksum How to use checksums |
e55d61c5438d229a4f24c4c4c137a083ff48f00c10c46e4fb1239d4c510b9a79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / pyrevs-1.1.0-py3-none-any.whl
| Download URL | pyrevs-1.1.0-py3-none-any.whl |
|---|---|
| Size | 87.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
953351ece0c1befde13ff725a131d31131c555d8e84400d19ed94dbfc8f91090
|
|
BLAKE2b-256 checksum How to use checksums |
a42389f40493f3d3a3e1b722640c728d464efc60def1958e5001caa08109f544
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for pyrevs 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.