-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
55 lines (48 loc) · 1.79 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
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>The Exp3 Algorithm</title>
<script src="js/lib/jQuery.js" type="text/javascript"></script>
<script src="js/lib/jquery.flot.min.js" type="text/javascript"></script>
<script src="js/bandits.js" type="text/javascript"></script>
<script src="js/agents.js" type="text/javascript"></script>
<script src="js/ui.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('ol #bandit').replaceWith(makeList(banditTypes));
$('ol #agent').replaceWith(makeList(agentTypes));
$("#run").click(runGame);
});
</script>
</head>
<body>
<div id="main" style="margin:0 auto;width:600px;">
<h1>Multi-armed Bandits Demo</h1>
<table id="controls" style="border: 1px solid gray;padding: 1ex;width:100%;">
<tr style="text-align:left;">
<th>Bandits</th>
<th>Agents</th>
</tr>
<tr>
<td style="vertical-align: top; width: 40%;">
<ol id="bandit"></ol>
</td>
<td style="vertical-align: top; width: 40%;">
<ol id="agent"></ol>
</td>
<td style="vertical-align: top;">
Run game for
<input id="steps" type="text" value="500" size="4"/>
<label for="steps">steps</label>.<br/>
<button id="run">Go!</button><br/>
<label for="average">Average</label>:
<input id="average" type="checkbox" checked="true" />
</td>
</tr>
</table>
<div id="placeholder" style="margin:0 auto;width:600px;height:300px"></div>
</div>
</body>
</html>