Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
timetoai authored Sep 1, 2023
1 parent 2572841 commit 896f45a
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
# TimeDiffusion
# 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**

[Time series tasks example](./examples/example_1d_data.ipynb)

**Philosophy****

TODO

**Model architecture**

TODO

0 comments on commit 896f45a

Please sign in to comment.