Skip to content

Instantly share code, notes, and snippets.

View jaikumarm's full-sized avatar

Jayakumar Munuswamy jaikumarm

View GitHub Profile
@jaikumarm
jaikumarm / timeseries_cnn.py
Created April 17, 2017 23:39 — forked from jkleint/timeseries_cnn.py
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
#!/usr/bin/env python
"""
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
from __future__ import print_function, division
import numpy as np
from keras.layers import Convolution1D, Dense, MaxPooling1D, Flatten
from keras.models import Sequential