Skip to content

Instantly share code, notes, and snippets.

@tpjg
tpjg / timeseries_cnn.py
Created August 29, 2018 20:08 — 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

Keybase proof

I hereby claim:

  • I am tpjg on github.
  • I am tpjg (https://keybase.io/tpjg) on keybase.
  • I have a public key ASDnPfsgZGoksyVzyb_sBiqGMzA6zLz2wlgK5Lo3zig3Owo

To claim this, I am signing this object: