Skip to content

Instantly share code, notes, and snippets.

@de1mos242
de1mos242 / rnn.py
Last active June 7, 2018 16:03
Simple example of recurrent network using LSTM on keras
from math import sin
import numpy as np
from keras.layers import Dense
from keras.layers import LSTM
from keras.models import Sequential
from matplotlib import pyplot
def seq_func(x):