sustaining_gazes/matlab_version/face_validation/DeepLearnToolbox/NN/nnpredict.m

9 lines
192 B
Mathematica
Raw Normal View History

2016-04-28 21:40:36 +02:00
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