Skip to content

Instantly share code, notes, and snippets.

@DiegoAgher
Created January 3, 2019 19:52
Show Gist options
  • Save DiegoAgher/c53fa2c6ca861d3ad0327741c317e1fa to your computer and use it in GitHub Desktop.
Save DiegoAgher/c53fa2c6ca861d3ad0327741c317e1fa to your computer and use it in GitHub Desktop.
mnist sequence
seq_length = 9
random_chars = np.random.randint(0, len(x_train)-1, seq_length)
image_seq = np.concatenate([x_train[j] for j in random_chars], axis=1)
seq_label = np.array([y_train[j] for j in random_chars])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment