Skip to content

Commit 1ac89ae

Browse files
committed
new mnist example
1 parent ad08798 commit 1ac89ae

File tree

11 files changed

+84721
-0
lines changed

11 files changed

+84721
-0
lines changed

examples/mnist/file.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
on
2+
tw
3+
th

examples/mnist/index.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
<title>mnist</title>
9+
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/p5.min.js"></script>
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/addons/p5.dom.min.js"></script>
12+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/addons/p5.sound.min.js"></script>
13+
<script src="mnist.js"></script>
14+
<script src="sketch.js"></script>
15+
<script src="../../lib/nn.js"></script>
16+
<script src="../../lib/matrix.js"></script>
17+
18+
<style>
19+
20+
body {
21+
font-size:30pt;
22+
}
23+
.correct {
24+
color: #00CC00
25+
}
26+
.wrong {
27+
color: #CC0000
28+
}
29+
30+
31+
</style>
32+
33+
34+
35+
36+
</head>
37+
<body>
38+
39+
<div id="container"></div>
40+
41+
<p id="info">
42+
43+
<!-- Label: <span id="label"></span><br/>
44+
Guess: <span id="guess"></span><br/> -->
45+
<br/>
46+
Testing: <span id="percent"></span><br/>
47+
<br/>
48+
User Guess: <span id="user_guess"></span>
49+
</p>
50+
51+
</body>
52+
</html>

0 commit comments

Comments
 (0)