I'm trying to generate a synthetic sequence with MNIST images. Each image is flattened 784. When I select five of them, my data is shape (5,784). I want to concatenate 5 of them horizontally, that my final image has shape (28,5*28). How can I achieve that?
I tried it with np.reshape but the best I could achieve, was a vertical concatenation.