Skip to content

Commit 2966a54

Browse files
Merge pull request rasmusbergpalm#17 from mohammadabdelaziz/patch-1
Update CNN/cnnsetup.m
2 parents 0decc72 + 15eac28 commit 2966a54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CNN/cnnsetup.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
inputmaps = net.layers{l}.outputmaps;
2424
end
2525
end
26+
% 'onum' is the number of labels, that's why it is calculated using size(y, 1). If you have 20 labels so the output of the network will be 20 neurons.
27+
% 'fvnum' is the number of output neurons at the last layer, the layer just before the output layer.
28+
% 'ffb' is the biases of the output neurons.
29+
% 'ffW' is the weights between the last layer and the output neurons. Note that the last layer is fully connected to the output layer, that's why the size of the weights is (onum * fvnum)
2630
fvnum = prod(mapsize) * inputmaps;
2731
onum = size(y, 1);
2832

0 commit comments

Comments
 (0)