MILES-Guess
Generalized Uncertainty for Earth System Science (GUESS)
Developed by the Machine Ingetration and Learning for Earth Systems (MILES) group at the NSF National Center for Atmospheric Research (NCAR), Boulder CO, USA
Contributors
- John Schreck
- David John Gagne
- Charlie Becker
- Gabrielle Gantos
- Dhamma Kimpara
- Thomas Martin
Documentation
Full documentation is here.
Quick Setup
Install in your Python environment with the following command:
pip install miles-guess
If you want to install a particular backend (tensorflow, tensorflow_gpu, torch, jax):
pip install miles-guess[<backend>]
Setup from Scratch
Install the Miniconda Python installer available here.
First clone the miles-guess repo from github.
git clone https://github.com/ai2es/miles-guess.git`
cd miles-guess
Create a conda environment for non-Casper/Derecho users:
mamba env create -f environment.yml`
conda activate guess`
Create a conda environment for Casper/Derecho users including Tensorflow 2.15 with GPU support.
mamba env create -f environment_gpu.yml`
conda activate guess
Using miles-guess
The law of total variance for each model prediction target may be computed as
$$LoTV = E[\sigma^2] + Var[\mu]$$
which is the sum of aleatoric and epistemic contributions, respectively. The MILES-GUESS package contains options for using either Keras or PyTorch for computing quantites according to the LoTV as well as utilizing Dempster-Shafer theory uncertainty in the classifier case.
For detailed information about training with Keras, refer to the Keras training details README. There three scripts for training three regression models, and one for training categorical models. The regression examples are trained on our surface layer ("SL") dataset for predicting latent heat and other quantities, and the categorical example is trained on a precipitation dataset ("p-type").
For pyTorch, please visit the the pyTorch training details README where details on training scripts for both evidential standard classification tasks are detailed. Torch examples use the same datasets as the Keras models. The torch training code will also scale on GPUs, and is compatitible with DDP and FSDP.
Metadata
Release files for miles-guess 2025.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 | |
|---|---|---|---|
| miles_guess-2025.1.0.tar.gz | 19.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| miles_guess-2025.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 MB
Release files / miles_guess-2025.1.0.tar.gz
| Download URL | miles_guess-2025.1.0.tar.gz |
|---|---|
| Size | 19.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0870f445842103571c64f384e7d216d0e947c6b66dd8888e9cd8eedd508c0e64
|
|
BLAKE2b-256 checksum How to use checksums |
fac4ab2106ed15e7183c8cc0bc5e6ed0689841378e90d633dfc02d1058ded26d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 9, 2025.
Transparency logRelease files / miles_guess-2025.1.0-py3-none-any.whl
| Download URL | miles_guess-2025.1.0-py3-none-any.whl |
|---|---|
| Size | 96.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
820ef697cfb840ec7a7aa386ce86ba8e9330f821f63e9486a7964f4df7ff3cda
|
|
BLAKE2b-256 checksum How to use checksums |
99d8ce4c421320b20f4c67e68c3c01c8e170b6cbdd79cfea8cab9ca3e4635339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 9, 2025.
Transparency log