Created
July 9, 2018 12:54
-
-
Save siakon89/280eac6a446ce6815a3896eca9ec5283 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
with open('submission.csv', 'w') as f: | |
f.write('ImageId,Label\n') | |
for data in tqdm(test_data): | |
arr = numpy.expand_dims(data[0], axis=0) | |
number = model.predict(arr) | |
label = argmax(number) | |
f.write(str(data[1]) + ',' + str(label) + '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment