Skip to content

Instantly share code, notes, and snippets.

Created March 10, 2018 14:07
What would you like to do?
import numpy as np
class RNN:
def step(self, x):
# Update the state
self.h = np.tanh(, self.h) +, x))
# Calculate the output
y =, self.h)
return y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment