Skip to content

Instantly share code, notes, and snippets.

View alexshires's full-sized avatar

Alex Shires alexshires

View GitHub Profile
@alexshires
alexshires / multi-ts-lstm.py
Created January 25, 2017 14:19 — forked from lukovkin/multi-ts-lstm.py
Time series prediction with multiple sequences input - LSTM - 1
# Time Series Testing
import keras.callbacks
from keras.models import Sequential
from keras.layers.core import Dense, Activation, Dense, Dropout
from keras.layers.recurrent import LSTM
# Call back to capture losses
class LossHistory(keras.callbacks.Callback):
def on_train_begin(self, logs={}):
self.losses = []