Created
May 28, 2019 11:51
-
-
Save stevemclaugh/c5ad22ead3ead111be71ad363990ecad 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
import mnist | |
import numpy as np | |
x_train, y_train, x_data, y_data = mnist.load() | |
x_filtered = [] | |
y_filtered = [] | |
for i in range(len(x_data)): | |
x_temp = x_data[i] | |
y_temp = y_data[i] | |
if y_temp > 6 or y_temp == 5 or y_temp == 1: | |
x_filtered.append(x_temp) | |
y_filtered.append(y_temp) | |
x_filtered = np.array(x_filtered) | |
y_filtered = np.array(y_filtered) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment