sustaining_gazes/matlab_version/face_validation/DeepLearnToolbox/NN/nnpredict.m
2016-04-28 15:40:36 -04:00

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