I test my network with the mnist dataset. Therefore the output of the model has shape 10.
How do I reshape the output? For example, if the output is label 3, is then the output [0 0 0 1 0 0 0 0 0 0], or [0 0 0 3 0 0 0 0 0 0] or completely different?
The thing is I don't want to use the dataloader. I use this method:
from mlxtend.data import loadlocal_mnist
X, y = loadlocal_mnist(
images_path='/home/wai043/data/mnist/train-images-idx3-ubyte',
labels_path='/home/wai043/data/mnist/train-labels-idx1-ubyte')