Skip to main content

TimeDiffusion - unified framework for multiple time series tasks

Project description

TimeDiffusion - Unified Framework for Multiple Time Series Tasks

Supports 2D (image) and 3D (video) data as input for research purposes.

Install

pip install timediffusion

Quick Start

Forecasting time seires

# train sequence in shape [channels, sequence_length]
model = TD(input_dims=train.shape).to(device=device)
training_losses = model.fit(train)
predictions = model.forecast(horizon)

Creating synthetic time series

# sequence in shape [channels, sequence_length]
model = TD(input_dims=seq.shape).to(device=device)
training_losses = model.fit(seq)
# proximity - how close to original, samples - total synthetic time series
synthetic_data = model.synth(proximity=0.9, samples=3, batch_size=2, step_granulation=100)

Time series Imputation

# sequence in shape [channels, sequence_length]
model = TD(input_dims=seq.shape).to(device=device)
# mask - binary array of same shape, as sequence, with 1 in positions, that needed to be overlooked
training_losses = model.fit(seq, mask=mask)
restored_seq = model.restore(example=seq, mask=mask)

Examples

Time series tasks example

Philosophy

Main synopsis behind TimeDiffusion model is that in reality, when working with time series we don’t have many samples, as it could be in other machine learning fields (e.g. cv, nlp). Thus, classical autoregressive approaches like ARIMA has the most suitable approach of fitting / training only on original sequence (maybe with some exogenous data).

TimeDiffusion takes inspiration from these established methods and only trains on the input sample. Model incorporates most powerful modern deep learning techniques such as diffusion process, exponential dilated convolutions, residual connections and attention mechanism

Model architecture

TODO

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

timediffusion-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

timediffusion-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file timediffusion-0.1.1.tar.gz.

File metadata

  • Download URL: timediffusion-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for timediffusion-0.1.1.tar.gz
Algorithm Hash digest
SHA256 43e396eb9c432dc7d5077a0ae1a437d3f54170d6b68fc5e73c127160e9dc13b5
MD5 bfa02c44be9e9e225453a349d4863884
BLAKE2b-256 b18817aaf265143baca51f507b3f95468dc5e062679aaf92a32ffbefa30864ef

See more details on using hashes here.

File details

Details for the file timediffusion-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: timediffusion-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for timediffusion-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ecfc79d1095ae7a6d1bdfd8bd256f62b6c64d8f72efdc95b0e2ef4dea97994c
MD5 44e7c5f6dc38af6e228fcbb15a19497c
BLAKE2b-256 5ac54378aa5b5618bece44fd3b50e02b35257f0919b2b45cb1db21b20d68b682

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