Skip to content

Commit

Permalink
dont sample in the last hidden layer activation in RBM, fixes rasmusb…
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusbergpalm committed Nov 12, 2013
1 parent a6499c3 commit bb431c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DBN/rbmtrain.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
v1 = batch;
h1 = sigmrnd(repmat(rbm.c', opts.batchsize, 1) + v1 * rbm.W');
v2 = sigmrnd(repmat(rbm.b', opts.batchsize, 1) + h1 * rbm.W);
h2 = sigmrnd(repmat(rbm.c', opts.batchsize, 1) + v2 * rbm.W');
h2 = sigm(repmat(rbm.c', opts.batchsize, 1) + v2 * rbm.W');

c1 = h1' * v1;
c2 = h2' * v2;
Expand Down

0 comments on commit bb431c2

Please sign in to comment.