Reference:
[1]http://blog.csdn.net/songrotek/article/details/41310861
[2]http://ufldl.stanford.edu/tutorial/supervised/SoftmaxRegression/
主要工作第一个就是读取数据集合,
第二个就是通过minFunc进行训练,找到全局最优,
之后就是在训练和测试集合上分别计算正确率。
addpath ../common
addpath ../common/minFunc_2012/minFunc
addpath ../common/minFunc_2012/minFunc/compiled
% Load the MNIST data for this exercise.
% train.X and test.X will contain the training and testing images.
% Each matrix has size [n,m] where:
% m is the number of examples.
% n is the number of pixels in each image.