I would try saving the array as an int array, as in result.astype(int), or in full:
with open("resultTR.csv", "wb") as f:
f.write(b'ImageId,Label\n')
numpy.savetxt(f, result.astype(int), fmt="%i", delimiter=",")
I would try saving the array as an int array, as in result.astype(int), or in full:
with open("resultTR.csv", "wb") as f:
f.write(b'ImageId,Label\n')
numpy.savetxt(f, result.astype(int), fmt="%i", delimiter=",")