Created
May 29, 2021 08:54
-
-
Save housecricket/80ed9cbf18861ad696e88d8d70699c73 to your computer and use it in GitHub Desktop.
This file contains 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
... | |
# 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