Skip to content

Instantly share code, notes, and snippets.

@franckjay
franckjay / Slim-1D_Conv.py
Last active January 22, 2018 21:21 — forked from jkleint/timeseries_cnn.py
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
inData.head()
def buildConvModel(nFilters,lenFilters,windowSize,nFeat):
model = Sequential((
#Layer 1: 1D Convolution