Skip to main content

No project description provided

Project description

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.

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

miles_guess-2025.1.0.tar.gz (19.8 MB view details)

Uploaded Source

Built Distribution

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

miles_guess-2025.1.0-py3-none-any.whl (96.8 kB view details)

Uploaded Python 3

File details

Details for the file miles_guess-2025.1.0.tar.gz.

File metadata

  • Download URL: miles_guess-2025.1.0.tar.gz
  • Upload date:
  • Size: 19.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for miles_guess-2025.1.0.tar.gz
Algorithm Hash digest
SHA256 0870f445842103571c64f384e7d216d0e947c6b66dd8888e9cd8eedd508c0e64
MD5 6d8c018447716431828771a8fa1a6b5a
BLAKE2b-256 fac4ab2106ed15e7183c8cc0bc5e6ed0689841378e90d633dfc02d1058ded26d

See more details on using hashes here.

Provenance

The following attestation bundles were made for miles_guess-2025.1.0.tar.gz:

Publisher: python-publish.yml on ai2es/miles-guess

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file miles_guess-2025.1.0-py3-none-any.whl.

File metadata

  • Download URL: miles_guess-2025.1.0-py3-none-any.whl
  • Upload date:
  • Size: 96.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for miles_guess-2025.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 820ef697cfb840ec7a7aa386ce86ba8e9330f821f63e9486a7964f4df7ff3cda
MD5 e767f7aa9832e953bbe4c4007da17aa7
BLAKE2b-256 99d8ce4c421320b20f4c67e68c3c01c8e170b6cbdd79cfea8cab9ca3e4635339

See more details on using hashes here.

Provenance

The following attestation bundles were made for miles_guess-2025.1.0-py3-none-any.whl:

Publisher: python-publish.yml on ai2es/miles-guess

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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