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 4ae73b1 commit 1e4e950Copy full SHA for 1e4e950
DBN/rbmtrain.m
@@ -1,6 +1,6 @@
1
function rbm = rbmtrain(rbm, x, opts)
2
assert(isfloat(x), 'x must be a float');
3
- assert(all(x>=0) && all(x<=1), 'all data in x must be in [0:1]');
+ assert(all(x(:)>=0) && all(x(:)<=1), 'all data in x must be in [0:1]');
4
m = size(x, 1);
5
numbatches = m / opts.batchsize;
6
0 commit comments