Skip to content

Commit

Permalink
Switched CI to Octave 3.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoandreottiATgmail committed Nov 29, 2013
1 parent bb78cbc commit f054f21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
before_script:
- sudo apt-add-repository -y ppa:picaso/octave
- sudo apt-add-repository ppa:octave/stable
- sudo apt-get update
- sudo apt-get install octave
- sudo apt-get install octave
- sudo apt-get install liboctave-dev
script:
- sh -c "octave tests/runalltests.m"

Expand Down
6 changes: 0 additions & 6 deletions CNN/cnnnumgradcheck.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ function cnnnumgradcheck(net, x, y)
d = (net_p.L - net_m.L) / (2 * epsilon);
e = abs(d - net.dffb(j));
if e > er
e
d / net.dffb(j)
error('numerical gradient checking failed');
end
end
Expand All @@ -27,8 +25,6 @@ function cnnnumgradcheck(net, x, y)
d = (net_p.L - net_m.L) / (2 * epsilon);
e = abs(d - net.dffW(i, u));
if e > er
e
d / net.ffW(i, u)
error('numerical gradient checking failed');
end
end
Expand All @@ -45,8 +41,6 @@ function cnnnumgradcheck(net, x, y)
d = (net_p.L - net_m.L) / (2 * epsilon);
e = abs(d - net.layers{l}.db{j});
if e > er
e
d / net.layers{l}.db{j}
error('numerical gradient checking failed');
end
for i = 1 : numel(net.layers{l - 1}.a)
Expand Down

0 comments on commit f054f21

Please sign in to comment.