Skip to content

Commit 202808a

Browse files
prettier this way
1 parent e211d16 commit 202808a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

DBN/dbnsetup.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
function dbn = dbnsetup(dbn, x, opts)
2-
assert(all(x(:)>=0) && all(x(:)<=1), "all data in x must be in [0:1]");
32
n = size(x, 2);
43
dbn.sizes = [n, dbn.sizes];
54

DBN/rbmtrain.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
function rbm = rbmtrain(rbm, x, opts)
22
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]");
34
m = size(x, 1);
45
numbatches = m / opts.batchsize;
56

0 commit comments

Comments
 (0)