Here's an example code to train a feedforward neural network using the MNIST Fashion dataset in MATLAB:
main.m1002 chars23 lines
Note that this code uses the mnist_reader
function which can be downloaded from the MATLAB File Exchange. Additionally, the nnCostFunction
and randInitializeWeights
are helper functions used in the training process. These functions can be found in the ex4
folder of the Stanford Machine Learning course on Coursera.
gistlibby LogSnag