Created
November 18, 2016 14:31
-
-
Save 3h4/a9bdf7f465595e151c1c7919691c560f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generateData(): | |
x = np.array(np.random.choice(2, total_series_length, p=[0.5, 0.5])) | |
y = np.roll(x, echo_step) | |
y[0:echo_step] = 0 | |
x = x.reshape((batch_size, -1)) # The first index changing slowest, subseries as rows | |
y = y.reshape((batch_size, -1)) | |
return (x, y) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zeroing all beginnings