Skip to content

Instantly share code, notes, and snippets.

@rahulkrishnan98
Created June 12, 2018 09:38
Show Gist options
  • Select an option

  • Save rahulkrishnan98/b11b697f0471a7b23bf2ff9c30127d02 to your computer and use it in GitHub Desktop.

Select an option

Save rahulkrishnan98/b11b697f0471a7b23bf2ff9c30127d02 to your computer and use it in GitHub Desktop.
seed=7
numpy.random.seed(seed)
(X_train, y_train), (X_test, y_test)=mnist.load_data()
X_train= X_train.reshape(X_train.shape[0],1,28,28).astype('float32')
X_test=X_test.reshape(X_test.shape[0],1,28,28).astype('float32')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment