Skip to main content

discontinuum

PyPI - Version

Overview

discontinuum is a middleware for developing Gaussian process (GP) models.

GP's are a flexible approach to machine learning, which are naturally suited for applications with sparse and noisy data or for uncertainty analysis. However, fitting GP's is numerically expensive, which has led to a range of optimizations with different tradeoffs. Ideally, we could quickly write mathematical models, then run them on whichever "engine" is best suited for a particular problem.

Most model applications also include a fair amount of "boiler plate" in the form of utility functions for plotting, managing metadata, data pre-processing, etc. discontinum packages several engines and helper utilities into a single ecosystem to simplify the processes of prototyping GP models.

Installation

pip install discontinuum

Models

loadset-gp

loadest-gp is Gaussian-process model for estimating river constituent time series, which borrows its namesake from the venerable LOAD ESTimator (LOADEST) software program. However, LOADEST has several serious limitations ---it's essentially a linear regression---and it has been all but replaced by the more flexible Weighted Regression on Time Discharge and Season (WRTDS), which allows the relation between target and covariate to vary through time. loadest-gp takes the WRTDS idea and reimplements it as a GP. github/thodson-usgs/discontinuum/blob/main/docs/source/notebooks/loadest-gp-demo.ipynb Try it out in the loadest-gp demo.

rating-gp

rating-gp is a Gaussian-process model for estimating river flow from stage time series. Try it out in the rating-gp demo.

Engines

Currently, the only supported engines are the marginal likelihood implementation in pymc and gpytorch. Latent GP implementations could be added in the future. In general, the gpytorch implementation is faster and provides a lot a powerful features, like GPU support, whereas pymc is a more complete probabilistic-programming framework, which can be "friendlier" for certain use cases.

Porting a model from one engine to another usually involves completely rewriting the guts of the GP. but any other boiler-plate functions should be unaffected.

Roadmap

mindmap
  root((discontinuum))
    data providers
      USGS
      etc
    engines
      PyMC
      PyTorch
    utilities
      pre-processing
      post-processing
      plotting
    models
      loadest-gp
      rating-gp

Metadata

Release files for discontinuum 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discontinuum 1.0.12
File Size Uploaded Provenance Actions
discontinuum-1.0.12.tar.gz 145.2 kB Without provenance Details for discontinuum-1.0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discontinuum 1.0.12
File Interpreter ABI Platform Actions
discontinuum-1.0.12-py3-none-any.whl Python 3 none any Details for discontinuum-1.0.12-py3-none-any.whl

Total release size: 190.7 kB

Release files / discontinuum-1.0.12.tar.gz

Download URL discontinuum-1.0.12.tar.gz
Size 145.2 kB
Tags Source
SHA-256 checksum
How to use checksums
144b3079073932a48a794286294651d595a0ee0973dc47213f91ac399bf9f869
BLAKE2b-256 checksum
How to use checksums
39ed15748340149374027109cbd7defe623fca19be1ad3329881918a81fe4978
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / discontinuum-1.0.12-py3-none-any.whl

Download URL discontinuum-1.0.12-py3-none-any.whl
Size 45.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9186c711f5cce0835ad9c6428c50ba16c670de4ff0b7725b870182add647170
BLAKE2b-256 checksum
How to use checksums
2c97b678904c28eafacf029030d0e0931ed53bd64e552090251d865d55a4e1d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for discontinuum 1.0.12

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page