sustaining_gazes/matlab_version/face_validation/DeepLearnToolbox/CAE/caedown.m

14 lines
259 B
Mathematica
Raw Normal View History

2016-04-28 19:40:36 +00:00
function cae = caedown(cae)
pa = cae.a;
pok = cae.ok;
for i = 1 : numel(cae.o)
z = 0;
for j = 1 : numel(cae.a)
z = z + convn(pa{j}, pok{i}{j}, 'valid');
end
cae.o{i} = sigm(z + cae.c{i});
end
end