Estimate discontinuous timeseries from continuous covariates.
Project description
discontinuum
[!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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discontinuum-1.0.12.tar.gz.
File metadata
- Download URL: discontinuum-1.0.12.tar.gz
- Upload date:
- Size: 145.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
144b3079073932a48a794286294651d595a0ee0973dc47213f91ac399bf9f869
|
|
| MD5 |
fa0d60af76773767cda77346b65a9219
|
|
| BLAKE2b-256 |
39ed15748340149374027109cbd7defe623fca19be1ad3329881918a81fe4978
|
File details
Details for the file discontinuum-1.0.12-py3-none-any.whl.
File metadata
- Download URL: discontinuum-1.0.12-py3-none-any.whl
- Upload date:
- Size: 45.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9186c711f5cce0835ad9c6428c50ba16c670de4ff0b7725b870182add647170
|
|
| MD5 |
4fc0788b51c0efb2b4b2d3ddc9fe911f
|
|
| BLAKE2b-256 |
2c97b678904c28eafacf029030d0e0931ed53bd64e552090251d865d55a4e1d9
|