summaryrefslogtreecommitdiff
path: root/examples/experiments/testmnist.m
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2009-05-13 09:58:48 +0000
committerAlberto Ruiz <aruiz@um.es>2009-05-13 09:58:48 +0000
commit37f71ca5188ba487d4e1c274873b187ddcb30576 (patch)
treec752b450f8d5829d2eacbe94222aeab358ceb255 /examples/experiments/testmnist.m
parent6809103cf34a9345f8cb60a0ec3a8f55dd18d5ef (diff)
removed old examples
Diffstat (limited to 'examples/experiments/testmnist.m')
-rw-r--r--examples/experiments/testmnist.m29
1 files changed, 0 insertions, 29 deletions
diff --git a/examples/experiments/testmnist.m b/examples/experiments/testmnist.m
deleted file mode 100644
index 38625a7..0000000
--- a/examples/experiments/testmnist.m
+++ /dev/null
@@ -1,29 +0,0 @@
1#! /usr/bin/octave -qf
2% measuring Octave computing times
3
4t0=time();
5load mnist.txt
6disp("load");
7disp(time()-t0)
8
9
10x = mnist(:,1:784);
11d = mnist(:,785);
12
13
14t0=time();
15xc = x - repmat(mean(x),rows(x),1);
16disp("x - repmat(mean(x),rows(x),1)");
17disp(time()-t0)
18
19t0=time();
20mc = (xc'*xc)/rows(x);
21disp("(xc'*xc)/rows(x)");
22disp(time()-t0)
23
24t0=time();
25[v,l]=eig(mc);
26disp("eig");
27disp(time()-t0)
28
29disp(flipud(diag(l))(1:10)); \ No newline at end of file