Skip to main content

TAug :: Time Series Data Augmentation using Deep Generative Models

Note!!! The package is under development so be careful for using in production!

Features

  • Time Series Data Augmentation using Deep Generative Models
  • Visualizing the Latent Space of Generative Models
  • Time Series Forecasting using Deep Neural Networks

Installation

You can install the last stable version using pip

pip install taug

How to Use

Augmentation Guide

Create an augmenter

from taug.augmenters.vae import LSTMVAE
from taug.augmenters.vae import VAEAugmenter

# create a variational autoencoder
vae = LSTMVAE(series_len=100)
# use the created vae as an augmenter
augmenter = VAEAugmenter(vae)

The above code uses the default settings for the LSTM-VAE model. You can customize its architecture or use your own model for encoder and decoder. Note currently we only support Keras models.

Train the augmenter

augmenter.fit(data, epochs=64)

Generate new time series!

A few strategy for sampling have been implemented.

Sampling from whol
augmenter.sample(n=1000)

Forecasting Guide

[todo] Forecasting guide will be here!

Supported Augmenters

Supported models for augmentation currently are as follows:

Model Type Supported Time Series Description
LSTMVAE Variational Autoencoder Univariate, fixed length A Variational Autoencoder with stacked LSTM layers for encoder and decoder

Supported Forecasters

Supported models for time series forecasting are as follows:

Contributors

The list of the current contributors:

  • Sasan Barak
  • Amirabbas Asadi

Release files for taug 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taug 0.1.0
File Size Uploaded
taug-0.1.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for taug 0.1.0
File Interpreter ABI Platform
taug-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / taug-0.1.0.tar.gz

Download URL taug-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5edf65d07827e3c25e880511321bbc79bef68fdaeee09d1fd03b9beb40426b5f
BLAKE2b-256 checksum
How to use checksums
dde617ee2a80b8ec258f1694fffb691d156f6697e6e32f0bda88ad5f21b226df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

Release files / taug-0.1.0-py3-none-any.whl

Download URL taug-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f18a1963832121f505d548e7bd9a44ca76684ea419d0931ed46da509ab385f7f
BLAKE2b-256 checksum
How to use checksums
06ae1bac818bf75e386b4cb288063e175360ed5228493fca4de4507e29f4196c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page