-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (62 loc) · 2.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<title>RLEXP</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="index.js"></script>
</head>
<body>
<section class="hero is-primary is-bold">
<div class="hero-body">
<div class="container">
<h1 class="title">
Hello RL!
</h1>
<h2 class="subtitle">
some pretty basic experiments in reinforcement learning
</h2>
</div>
</div>
</section>
<!-- hack for spacing -->
<!-- if someone knows how to do this properly, please tell me too -->
<section class="level"></section>
<section>
<div class="container is-fluid">
<div class="columns">
<div class="column">
<h3 class="heading">Controls</h3>
<button class="button is-small is-inline is-danger" onclick="reset()">Reset</button>
<div class="hspace"></div>
<div class="buttons has-addons" style="display: inline-flex;">
<button id="stpbutton" onclick="setRunState(0)">Stop</button>
<button id="runbutton" onclick="setRunState(1)">Run</button>
<button id="ffwbutton" onclick="setRunState(2)">FastFwd</button>
</div>
<div class="hspace"></div>
<select id="agt" class="select field is-small" style="background-color: white; border-color: #dbdbdb;" onchange="reset()">
<option value="DQNAgent">DQNAgent</option>
<option value="RandomAgent">RandomAgent</option>
</select>
<select id="env" class="select field is-small" style="background-color: white; border-color: #dbdbdb;" onchange="reset()">
<option value="DefaultEnvironment">DefaultEnvironment</option>
</select>
<h3 class="heading">Visualization</h3>
<!-- The canvas will go here -->
<div id="pixiapp"></div>
<div class="content is-small">
<span id="status"></span>
<br>
<span id="status2"></span>
</div>
</div>
<div class="column is-one-third">
<h3 class="heading">Graphs</h3>
<canvas width="200" height="150" id="iter_ep"></canvas>
<canvas width="200" height="150" id="rew_ep"></canvas>
</div>
</div>
</div>
</section>
</body>
</html>