• Stars
    star
    407
  • Rank 106,183 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An LSTM for time-series classification

Update 10-April-2017

And now it works with Python3 and Tensorflow 1.1.0

Update 02-Jan-2017

I updated this repo. Now it works with Tensorflow 0.12. In this readme I comment on some new benchmarks

LSTM for time-series classification

This post implements a Long Short-term memory for time series classification(LSTM). An LSTM is the extension of the classical Recurrent Neural Network. It has more flexibility and interpretable features such as a memory it can read, write and forget.

Aim

This repo aims to show the minimal Tensorflow code for proper time series classification. The main function loads the data and iterates over training steps. The tsc_model.py scripts contains the actual model. This repo contrasts with another project where I implement a similar script using convolutional neural networks as the model

Data and results

The code generalizes for any of the UCR time series. With the parameter dataset you can run the code on any of their datasets. For your interests, you may compare performances with the nice overview in this paper. They benchmark their CNN and other models on many of the UCR time series datasets This code works amongst others for

  • Two_Patterns where it achieves state-of-the-art, bein 100% test accuracy
  • ChlorineConcentration where it achieves state-of-the-art, being 80% test accuracy

Credits

Credits for this project go to Tensorflow for providing a strong example, the UCR archive for the dataset and my friend Ryan for strong feedback.

License is in LICENSE.txt

As always, I am curious to any comments and questions. Reach me at [email protected]

More Repositories

1

AE_ts

Auto encoder for time series
Python
428
star
2

weight_uncertainty

Implementing Bayes by Backprop
Python
179
star
3

CNN_tsc

A CNN for time-series classification
Python
155
star
4

RNN_basketball

LSTM + MDN for basketball trajectories
Python
142
star
5

bigclam

Implements the bigCLAM algorithm
Python
50
star
6

ssl_graph

Semi supervised learning on graphs
Python
35
star
7

bayes_nn

Uncertainty interpretations of the neural network
Python
30
star
8

cnn_music

A CNN for music genre classification and TSC in general
MATLAB
30
star
9

bandit

Implementation of Counterfactual risk minimization
Python
26
star
10

segm

Simple Semantic Segmentation
Python
17
star
11

VAE_rec

Variational Recurrent Auto Encoder
Python
16
star
12

EM

visualizing Expectation Maximization
Python
16
star
13

vi_normal

Variational Inference for a Normal Distribution
Python
12
star
14

tensorflow_basic

Basic start of TensorFlow with TensorBoard
Python
11
star
15

EDS

Github Repo for Eindhoven Data Science MeetUp
11
star
16

dan

Domain Agnostic Normalization layer for Unsupervised Domain Adaptation
Python
11
star
17

attention

An elementary example of soft attention
Python
8
star
18

ts_clust

WIP to cluster time series
Python
7
star
19

hypothesis_kalman

Hypothesis testing for time series: two buckets are from same source or different?
Python
7
star
20

ladder

LADDER network after Harri Valpola
Python
7
star
21

LSTM_cpd

LSTM for change point detection
Python
7
star
22

dpm

Dirichlet Process Mixtures
Python
6
star
23

ssl

Implementation of self ensembling for semi supervised learning
Python
6
star
24

overview

Overview diagram and lists of Machine Learning
HTML
6
star
25

awesome_distributions

Scribbles about marginalization property of Gaussian and aggregation property of Dirichlet
Python
6
star
26

cs231n

Files for the cs231n course at Stanford
Jupyter Notebook
5
star
27

FCN

Fully Convolutional Network
Python
4
star
28

rbm

Restricted Boltzmann Machine
Python
3
star
29

occam

Implementing Occam's razor from the Statistical and Bayesian views.
Python
3
star
30

indian_buffet

Indian buffet latent variable model
Python
3
star
31

RAM

Recurrent Attention Model
Python
3
star
32

VAE

Variational Auto encoder
Python
3
star
33

DRAW

DRAW
Python
3
star
34

rbfn_learnable

RBFN with learnable RBF parameters
Python
2
star
35

ssl_rep

Combining insights from representation learning and semi supervised learning
Python
2
star
36

bbvi

Comparing variance of gradient estimators for BBVI
Python
2
star
37

q_learning

Implementation of epsilon-greedy q-learning for robot on 2D grid
MATLAB
2
star
38

mcmc_proposals

Compare different proposal distro's for MCMC
Python
2
star
39

hypothesis_testing

Project on hypothesis testing
Python
2
star
40

bayesian_model_comparison

Three approaches for Bayesian model comparison
Python
2
star
41

RBFN_two_MNIST

Radial basis function network for two classes of the MNIST dataset
MATLAB
1
star
42

far_away

Exploring linear classifiers on inputs far away from the training data
Python
1
star
43

dpbmm

Dirichlet Process Mixture model for Multinoulli distributions
Python
1
star
44

hacking_180824

hacking_180824
Python
1
star
45

trees_ensemble

This projects aggregates a Bagging, Random Forest and MLP classifier for data competition
Python
1
star
46

talks

repo for my talks
1
star