We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e211d16 commit 202808aCopy full SHA for 202808a
DBN/dbnsetup.m
@@ -1,5 +1,4 @@
1
function dbn = dbnsetup(dbn, x, opts)
2
- assert(all(x(:)>=0) && all(x(:)<=1), "all data in x must be in [0:1]");
3
n = size(x, 2);
4
dbn.sizes = [n, dbn.sizes];
5
DBN/rbmtrain.m
@@ -1,5 +1,6 @@
function rbm = rbmtrain(rbm, x, opts)
assert(isfloat(x), 'x must be a float');
+ assert(all(x>=0) && all(x<=1), "all data in x must be in [0:1]");
m = size(x, 1);
numbatches = m / opts.batchsize;
6
0 commit comments