mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-12 10:22:29 +00:00
11 lines
232 B
Matlab
11 lines
232 B
Matlab
function dbn = dbntrain(dbn, x, opts)
|
|
n = numel(dbn.rbm);
|
|
|
|
dbn.rbm{1} = rbmtrain(dbn.rbm{1}, x, opts);
|
|
for i = 2 : n
|
|
x = rbmup(dbn.rbm{i - 1}, x);
|
|
dbn.rbm{i} = rbmtrain(dbn.rbm{i}, x, opts);
|
|
end
|
|
|
|
end
|