Matlab code for multi-layer fully connected neural network
The main function is mainNeuralNet_MNIST.m.
The number of layers and the number of neurons of each layer can easily be adjusted.
The dataset (train-images.idx3-ubyte, train-labels.idx1-ubyte, t10k-images.idx3-ubyte, t10k-labels.idx1-ubyte) can be downloaded from http://yann.lecun.com/exdb/mnist/
Extractors (loadMNISTImages, loadMNISTLabels) of this dataset can be downloaded from http://ufldl.stanford.edu/wiki/index.php/Using_the_MNIST_Dataset
Download: initializeNet.m
, mainNeuralNet_MNIST.m, train.m, validate.m