8 lines
192 B
Matlab
8 lines
192 B
Matlab
function labels = nnpredict(nn, x)
|
|
nn.testing = 1;
|
|
nn = nnff(nn, x, zeros(size(x,1), nn.size(end)));
|
|
nn.testing = 0;
|
|
|
|
[dummy, i] = max(nn.a{end},[],2);
|
|
labels = i;
|
|
end
|