-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (39 loc) · 1.64 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Dividing line</title>
<link href="styles.css" rel="stylesheet">
<meta charset="UTF-8">
</head>
<body>
<h1>Calculate the diving line</h1>
<h3>using a neural network</h3>
<main>
<canvas id="canvas" width="400" height="400"></canvas>
<div>
<div>Accuracy: <span id="accuracy"></span>%</div>
<p>Legend:</p>
<div id="legend">
<div>Green line: Dividing line</div>
<div>Black line: Dividing line guessed by the neural network</div>
<div>Training points: <span class="color grey"></span></div>
<div>Testing points classified as being on one side of the green dividing line: <span
class="color blue"></span></div>
<div>Testing points classified as being on the other side of the green dividing line: <span
class="color red"></span></div>
</div>
<p>Adjust the following settings to get different results:</p>
<p>Number of points: <input id="num-points" type="number" min="0"></p>
<p>Training set size (percentage): <input id="percentage-train-set" type="number" min="0" max="99"></p>
<p>Learning rate: <input id="learning-rate" type="number" min="0" step="0.1" max="1"></p>
</div>
</main>
<script src="utils.js"></script>
<script src="settings.js"></script>
<script src="canvas.js"></script>
<script src="point.js"></script>
<script src="neuron.js"></script>
<script src="neural-network.js"></script>
<script src="index.js"></script>
</body>
</html>