All Projects → philipperemy → Tensorflow Cnn Time Series

philipperemy / Tensorflow Cnn Time Series

Licence: apache-2.0
Feeding images of time series to Conv Nets! (Tensorflow + Keras)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tensorflow Cnn Time Series

Tensorflow Tutorial
TensorFlow and Deep Learning Tutorials
Stars: ✭ 748 (+1426.53%)
Mutual labels:  convolutional-neural-networks, cnn, recurrent-neural-networks
Deep Learning With Python
Deep learning codes and projects using Python
Stars: ✭ 195 (+297.96%)
Mutual labels:  convolutional-neural-networks, cnn, recurrent-neural-networks
Deepseqslam
The Official Deep Learning Framework for Route-based Place Recognition
Stars: ✭ 49 (+0%)
Mutual labels:  convolutional-neural-networks, cnn, recurrent-neural-networks
Iseebetter
iSeeBetter: Spatio-Temporal Video Super Resolution using Recurrent-Generative Back-Projection Networks | Python3 | PyTorch | GANs | CNNs | ResNets | RNNs | Published in Springer Journal of Computational Visual Media, September 2020, Tsinghua University Press
Stars: ✭ 202 (+312.24%)
Mutual labels:  convolutional-neural-networks, cnn, recurrent-neural-networks
Pytorch Learners Tutorial
PyTorch tutorial for learners
Stars: ✭ 97 (+97.96%)
Mutual labels:  convolutional-neural-networks, cnn, recurrent-neural-networks
Rmdl
RMDL: Random Multimodel Deep Learning for Classification
Stars: ✭ 375 (+665.31%)
Mutual labels:  convolutional-neural-networks, cnn, recurrent-neural-networks
Keras Sincnet
Keras (tensorflow) implementation of SincNet (Mirco Ravanelli, Yoshua Bengio - https://github.com/mravanelli/SincNet)
Stars: ✭ 47 (-4.08%)
Mutual labels:  convolutional-neural-networks, cnn
Svhn Cnn
Google Street View House Number(SVHN) Dataset, and classifying them through CNN
Stars: ✭ 44 (-10.2%)
Mutual labels:  convolutional-neural-networks, cnn
Machine Learning Curriculum
💻 Make machines learn so that you don't have to struggle to program them; The ultimate list
Stars: ✭ 761 (+1453.06%)
Mutual labels:  convolutional-neural-networks, recurrent-neural-networks
Deep Learning Time Series
List of papers, code and experiments using deep learning for time series forecasting
Stars: ✭ 796 (+1524.49%)
Mutual labels:  time-series, recurrent-neural-networks
Trending Deep Learning
Top 100 trending deep learning repositories sorted by the number of stars gained on a specific day.
Stars: ✭ 543 (+1008.16%)
Mutual labels:  convolutional-neural-networks, recurrent-neural-networks
Sincnet
SincNet is a neural architecture for efficiently processing raw audio samples.
Stars: ✭ 764 (+1459.18%)
Mutual labels:  convolutional-neural-networks, cnn
Cnnimageretrieval Pytorch
CNN Image Retrieval in PyTorch: Training and evaluating CNNs for Image Retrieval in PyTorch
Stars: ✭ 931 (+1800%)
Mutual labels:  convolutional-neural-networks, cnn
Torchio
Medical image preprocessing and augmentation toolkit for deep learning
Stars: ✭ 708 (+1344.9%)
Mutual labels:  convolutional-neural-networks, cnn
Web Traffic Forecasting
Kaggle | Web Traffic Forecasting 📈
Stars: ✭ 596 (+1116.33%)
Mutual labels:  time-series, convolutional-neural-networks
Rwa
Machine Learning on Sequential Data Using a Recurrent Weighted Average
Stars: ✭ 593 (+1110.2%)
Mutual labels:  time-series, recurrent-neural-networks
Tf cnnvis
CNN visualization tool in TensorFlow
Stars: ✭ 769 (+1469.39%)
Mutual labels:  convolutional-neural-networks, cnn
Deepmodels
TensorFlow Implementation of state-of-the-art models since 2012
Stars: ✭ 33 (-32.65%)
Mutual labels:  convolutional-neural-networks, cnn
Kaggle Web Traffic Time Series Forecasting
Solution to Kaggle - Web Traffic Time Series Forecasting
Stars: ✭ 29 (-40.82%)
Mutual labels:  time-series, cnn
Ml In Tf
Get started with Machine Learning in TensorFlow with a selection of good reads and implemented examples!
Stars: ✭ 45 (-8.16%)
Mutual labels:  convolutional-neural-networks, recurrent-neural-networks

Using CNN on 2D Images of Time Series

Because too often time series are fed as 1-D vectors Recurrent Neural Networks (Simple RNN, LSTM, GRU..).

Will this time series go up or down in the next time frame?

Which plot contains highly correlated time series?

Possible advantages/drawbacks of such approach:

Advantages

  • Almost no pre-processing. Feed raw pixels (be careful of the resolution of the image though)!
  • We can add several time series on the same plot or on a different plot and concatenate both images.
  • Conv Nets have the reputation of being more stable than Recurrent Neural Networks for many tasks (WaveNet is just one example).
  • No vanishing/exploding gradient! Even though, it's less true with LSTM.

Drawbacks

  • Input is much bigger than feeding 1-D vectors. Actually it's very very sparse!
  • Training will be undoubtedly slower.
  • Sometimes it's also hard to train very big conv nets (VGG19 is such an example).

Let's get started!

Fake data generation

git clone https://github.com/philipperemy/tensorflow-cnn-time-series.git
cd tensorflow-cnn-time-series/
sudo pip3 install -r requirements.txt
python3 generate_data.py

Start the training of the CNN (AlexNet is used here)

python3 alexnet_run.py

Toy example: Binary classification of images of time series

We consider the following binary classification problem of time series:

  • UP: If the time series went up in the next time frame.
  • DOWN: if the time series went down.

Because it's impossible to classify pure random time series into two distinct classes, we expect a 50% accuracy on the testing set and the model to overfit on the training set. Here are some examples that we feed to the conv net:





Keep in mind that LSTM is also good!

python3 lstm_keras.py # on correlation classification task
[...]
[test] loss= 0.021, acc= 100.00
[test] loss= 0.004, acc= 100.00
[test] loss= 0.004, acc= 100.00
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].