Hi Hagay,,
Thanks for your code.
My input data is 2000 sample hyperspectral images as matrix array 25*25*37 (25 is the size of images and 37 is the number of bands) and 1000 test data for tree type classification( output 3 class). I tried to run Mnist.m on my data but it took a long time (more than one day) and I didn't get result. Then I resized my images to 5*5*37 with this config setting :
%%%%%%%%%%%%%%%%%%%%% input settings %%%%%%%%%%%%%%%%%%
net.hyperParam.sizeFmInput = [5 5]; % size of input feature map
net.hyperParam.numFmInput = 925; % number of feature map of the input
%%%%%%%%%%%%%%%%%%%%% Layers specification %%%%%%%%%%%%%%%%%%
net.layers{end+1}.properties = struct('type',2,'numFm',12 ,'kernel',5,'pad',2);
net.layers{end+1}.properties = struct('type',2,'numFm',24 ,'kernel',13);
net.layers{end+1}.properties = struct('type',1,'numFm',128);
net.layers{end+1}.properties = struct('type',1,'numFm',3);
% net.layers{end+1}.properties = struct('type',0,'numFm',3); %softmax
%%%%%%%%%%%%%%%%%%%%% Hyper params - training %%%%%%%%%%%%%%%%%%
net.hyperParam.trainLoopCount = 1000; %on how many images to train before evaluating the network
net.hyperParam.testImageNum = 2000; % after each loop, on how many images to evaluate network performance
net.hyperParam.ni_initial = 0.05; % ni to start training process
net.hyperParam.ni_final = 0.025; % final ni to stop the training process
net.hyperParam.normalizeNetworkInput=0; % default is '1'
Now I is 2000*1 that each row in I cell array has 925 (5*5*37) values.
Unfortunately, I've got these errors ;
Verifying backProp..Network is OK. Verification time=221.90
Error using reshape
To RESHAPE the number of elements must not
change.
Error in GetNetworkInputs (line 134)
image = reshape(image , inputDim);
Error in Train (line 54)
assert(ndims((zeros([net.hyperParam.sizeFmInput
net.hyperParam.numFmInput])))==ndims(GetNetworkInputs(dataset.I{1},net,1)),
'Error - input does not match network
configuration (input size + num FM)');
Error in demoMnist (line 15)
net = Train(MNIST,net, 15000);
Could you please tell me what's the problem? and How much time is required to process this amount of data normally?
Thanks in advance!
Somayeh