Skip to content

Instantly share code, notes, and snippets.

@housecricket
Created May 29, 2021 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save housecricket/80ed9cbf18861ad696e88d8d70699c73 to your computer and use it in GitHub Desktop.
Save housecricket/80ed9cbf18861ad696e88d8d70699c73 to your computer and use it in GitHub Desktop.
...
# load all datasets
(azData, azLabels) = load_az_dataset(args["az"])
(digitsData, digitsLabels) = load_zero_nine_dataset()
# the MNIST dataset occupies the labels 0-9, so let's add 10 to every A-Z label to ensure the A-Z characters are not incorrectly labeled as digits
azLabels += 10
# stack the A-Z data and labels with the MNIST digits data and labels
data = np.vstack([azData, digitsData])
labels = np.hstack([azLabels, digitsLabels])
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment