We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e32548b commit 4be462dCopy full SHA for 4be462d
NN/nneval.m
@@ -3,6 +3,7 @@
3
% Returns a updated loss struct
4
assert(nargin == 4 || nargin == 6, 'Wrong number of arguments');
5
6
+nn.testing = 1;
7
% training performance
8
nn = nnff(nn, train_x, train_y);
9
loss.train.e(end + 1) = nn.L;
@@ -12,7 +13,7 @@
12
13
nn = nnff(nn, val_x, val_y);
14
loss.val.e(end + 1) = nn.L;
15
end
-
16
+nn.testing = 0;
17
%calc misclassification rate if softmax
18
if strcmp(nn.output,'softmax')
19
[er_train, ~] = nntest(nn, train_x, train_y);
0 commit comments