buriburisuri / timeseries_gan

A tensorflow implementation of GAN ( exactly InfoGAN or Info GAN ) to one dimensional ( 1D ) time series data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timeseries_gan

A tensorflow implementation of GAN ( exactly InfoGAN or Info GAN ) to one dimensional ( 1D ) time series data. We've applied InfoGAN model (https://arxiv.org/abs/1606.03657 ) to one dimensional time series data for classifying time series data through unsupervised way.

Dependencies

  1. tensorflow >= rc0.10
  2. sugartensor >= 0.0.1

Sample Data

Unfortunately, I cannot share sample time series data but you can use any csv formatted time series data as following.


time,series1,series2
1,11.1,21.1
2,12.2,22.2
3,13.0,23.1
     .
     .
     .

This file should be saved at 'asset/data/sample.csv' before you train the network.

Training the network

Execute


python train.py

to train the network. You can see the result ckpt files and log files in the 'asset/train' directory. Launch tensorboard --logdir asset/train/log to monitor training process.

Generating sample time series data

Execute


python generate.py

to generate sample time series data. The graph image of generated time series data will be saved in the 'asset/train' directory.

Generated time series data sample

This graph of time series was generated by InfoGAN network. You may know that it's difficult to discriminate generated time series data from real time series data.

Real time series data

Fake time series data

Decomposed time series data

Other resources

  1. Original GAN tensorflow implementation
  2. InfoGAN tensorflow implementation
  3. EBGAN tensorflow implementation

Authors

Namju Kim (njkim@jamonglab.com) at Jamonglabs Co., Ltd.

About

A tensorflow implementation of GAN ( exactly InfoGAN or Info GAN ) to one dimensional ( 1D ) time series data.

License:MIT License


Languages

Language:Python 100.0%