TimeDiffusion - unified framework for multiple time series tasks
Project description
TimeDiffusion - Unified time series framework for multiple tasks
Supports 2D (image) and 3D (video) data, but is currently not suitable for working with them.
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
Philosophy**
TODO
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.tar.gz
(10.9 kB
view details)
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 timediffusion-0.1.tar.gz.
File metadata
- Download URL: timediffusion-0.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5ac7c901c7241b2457d38563bf475cf3a57da24669816c3e8f8e4df0f8c9cec
|
|
| MD5 |
ea809911bea8fa2eea2d4e3061ef3af5
|
|
| BLAKE2b-256 |
f2f3331928212c5d3b7451e12b98c34c3250e9c6f7e26d260d9d36317381e0ca
|
File details
Details for the file timediffusion-0.1-py3-none-any.whl.
File metadata
- Download URL: timediffusion-0.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95b1032501b8acdad9462fb8129dcaabcbce0e1d7f40aa8efe6979f05ea4a067
|
|
| MD5 |
cf17091bced82d2a378e8756bc671f1f
|
|
| BLAKE2b-256 |
d77f9241144679ddb6a3c58e0be44a593cc68934d45a332498512a069333e522
|