This is part of my learning. I Understood the normalization is really helping to improve accuracy, and hence divided by 255 the mnist values. This will divide all the pixels by 255, and hence all the pixels of 28*28 will have the values in range from 0.0 to 1.0 .
Now i tired to multiply the same with 255,this essentially means we should get the original value back. but when i display the picture, both the original and de-normalised pictures are different.
(trainX, trainY), (testX, testY) = mnist.load_data()
plt.subplot(2,2,1)
plt.imshow(trainX[143])
trainX /= 255
plt.subplot(2,2,2)
plt.imshow(trainX[143])
trainX *= 255
plt.subplot(2,2,3)
plt.imshow(trainX[143])
plt.show()
OUtput:
What am i missing?. Anything related to float and int data type of the input data?