Skip to main content

Estimate discontinuous timeseries from continuous covariates.

Project description

discontinuum

PyPI - Version

[!WARNING]
Experimental.

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

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

discontinuum-1.0.11.tar.gz (144.9 kB view details)

Uploaded Source

Built Distribution

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

discontinuum-1.0.11-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file discontinuum-1.0.11.tar.gz.

File metadata

  • Download URL: discontinuum-1.0.11.tar.gz
  • Upload date:
  • Size: 144.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for discontinuum-1.0.11.tar.gz
Algorithm Hash digest
SHA256 d993cb6127f940df04ae5ab328103299b95861bb2ebd724cf127aecbc3e48d02
MD5 8af6e3f24452581e9d04fc56d7649b0f
BLAKE2b-256 1adb0f55e7b76e49a55ec770a61acfd3616e909ce68ee7f74813b81cb20edede

See more details on using hashes here.

File details

Details for the file discontinuum-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: discontinuum-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 45.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for discontinuum-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8879408ba8792446ad64f69ce94a458266229c0cbe3a9b52169b80e1d7de09e5
MD5 8c166e62f375c78f9fdefb1d1a9da421
BLAKE2b-256 3ecf882dae621d9fc99d471471e4ad3e9e0f3dd0902098d30a5d495488d37cfd

See more details on using hashes here.

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