I have 60000 train_images brought in as a shape (28,28,60000) matrix. It is a numpy.ndarray. I want to convert it to an array of 1 dimensional images, meaning each image is
I think you just need to use reshape:
>>> images = np.ndarray([60000, 28, 28]) >>> images.shape (60000, 28, 28) >>> images_rs = images.reshape([60000, 28*28]) >>> images_rs.shape (60000, 784)