Suppose I have a feature composed by 784 numbers, and I want to use it as input of a neural network implemented from scratch whose first layer has 64 neurons.
How can I put 784 numbers in 64 neurons?
To reduce the number of features from the raw data to 64 input neurons, you can perform dimensionality reduction. There are various methods to do this, here are some common ones that are easy to implement.