Skip to content

Commit bb78cbc

Browse files
Minor changes
+ changed the scripts for CI. + tunned a bit the test parameters in test_example_CNN.
1 parent 825b6cd commit bb78cbc

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
before_script:
2+
- sudo apt-add-repository -y ppa:picaso/octave
3+
- sudo apt-get update
24
- sudo apt-get install octave
3-
45
script:
56
- sh -c "octave tests/runalltests.m"
67

tests/octave-core

116 Bytes
Binary file not shown.

tests/test_example_CNN.m

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
%will run 1 epoch in about 200 second and get around 11% error.
1111
%With 100 epochs you'll get around 1.2% error
1212

13-
if !isOctave()
14-
rng(0)
15-
else
16-
rand('state',0)
17-
end
13+
rand('state',0)
1814

1915
cnn.layers = {
2016
struct('type', 'i') %input layer
@@ -26,8 +22,8 @@
2622

2723

2824
opts.alpha = 1;
29-
opts.batchsize = 250;
30-
opts.numepochs = 3;
25+
opts.batchsize = 200;
26+
opts.numepochs = 7;
3127

3228
cnn = cnnsetup(cnn, train_x, train_y);
3329
cnn = cnntrain(cnn, train_x, train_y, opts);

0 commit comments

Comments
 (0)