-
Notifications
You must be signed in to change notification settings - Fork 2
/
mnist.html
58 lines (52 loc) · 2.69 KB
/
mnist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css">
<script src="./mnist.js"></script>
<title>TF.js Lab</title>
</head>
<body class="bg-black">
<div class="container grid w-full h-screen max-w-full max-h-screen" style="grid-template-rows: auto auto 1fr;">
<nav class="bg-gray-800 border-b border-solid border-gray-500">
<div class="max-w-full mx-auto px-2 sm:px-6 lg:px-8">
<div class="relative flex items-center justify-between h-16">
<div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">
<div class="hidden sm:block">
<div class="flex space-x-4">
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
<a href="./iris.html" class="hover:bg-gray-700 hover:text-white text-gray-300 px-5 py-2 rounded-md text-sm font-medium">Iris</a>
<a href="#" class="bg-gray-900 text-white px-5 py-2 rounded-md text-sm font-medium" aria-current="page">MNIST</a>
<a href="./sequencing.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-5 py-2 rounded-md text-sm font-medium">Sequencing</a>
<a href="./timeSeries.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-5 py-2 rounded-md text-sm font-medium">Time Series</a>
</div>
</div>
</div>
</div>
</div>
</nav>
<header class="bg-gray-800 shadow">
<div class="flex items-center mx-auto py-10 px-2 sm:px-6 lg:px-8">
<h1 class="text-3xl font-bold text-white">
MNIST on TF.js
</h1>
<div>
<button id="trainCNNBtn" class="w-32 h-16 bg-blue-900 hover:bg-blue-800 text-white mx-10 px-4 rounded" onclick="mnist.startTraining()">Train CNN</button>
</div>
</div>
</header>
<main id="consoleParent" class="h-auto max-h-full overflow-y-auto" onscroll="mnist.recordScrolled()">
<div class="max-w-full px-1">
<div class="py-2 sm:px-0">
<div id="console" class="px-3 py-3"></div>
<!-- <div id="console" class="border-2 border-solid border-green-500 h-96 px-3 py-3 overflow-y-auto"></div> -->
</div>
</div>
</main>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tfjs-vis.umd.min.js"></script>
</html>