Skip to content

Instantly share code, notes, and snippets.

@Crazz-Zaac
Created January 1, 2021 16:18
Show Gist options
  • Save Crazz-Zaac/4bc4f640100522f4444036c2635861af to your computer and use it in GitHub Desktop.
Save Crazz-Zaac/4bc4f640100522f4444036c2635861af to your computer and use it in GitHub Desktop.
Viewing more about data
X_train_orig, Y_train_orig, X_test_orig, Y_test_orig, classes = load_dataset()
# Normalize image vectors
X_train = X_train_orig/255.
X_test = X_test_orig/255.
# Reshape
Y_train = Y_train_orig.T
Y_test = Y_test_orig.T
print ("number of training examples = " + str(X_train.shape[0]))
print ("number of test examples = " + str(X_test.shape[0]))
print ("X_train shape: " + str(X_train.shape))
print ("Y_train shape: " + str(Y_train.shape))
print ("X_test shape: " + str(X_test.shape))
print ("Y_test shape: " + str(Y_test.shape))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment