MNIST data shape
In going through the different tutorials on CNN, autoencoders, and so on I trained myself on the MNIST problem. The different images are stored in a 3D array which shape is (60000,28,28). In some tutorials for the first layer of CNN they use the Flatten function
keras.layers.Flatten(input_shape=())
but in other tutorials, they transform the 3D Array in A 4D Array (60.000, 28,28,1 ) that I suppose is identical that use the Flatten function? Am I right? Why there are two different approaches to this? Do Keras understand both of them?
Topic mnist cnn keras autoencoder image-classification
Category Data Science