-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLSTM.html
161 lines (150 loc) · 5.78 KB
/
LSTM.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JARVIS</title>
<link rel="stylesheet" href="lib/imports/bootstrap-3.3.6-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/style.css">
</head>
<body>
<header>
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">JARVIS</a>
</div>
<ul class="nav navbar-nav">
<li><a href="neural_network.html">Neural network</a></li>
</ul>
</div>
</nav>
</header>
<div class="container">
<ul class="nav nav-pills nav-justified">
<li role="presentation"><a href="neural_network.html">Perceptron</a></li>
<li role="presentation" class="active"><a href="LSTM.html">LSTM</a></li>
</ul>
<h2 class="network-structure-title">
<span class="glyphicon show-hide glyphicon-minus"></span>
<span class="glyphicon show-hide glyphicon-plus hidden"></span>
Network Structure
</h2>
<div class="row network-structure-content">
<div class="col-md-4 network-structure">
<h3>LSTM structure:</h3>
<div class="form-group">
<label>Input neurons number: </label>
<input type="number" class="form-control" name="input-nodes" min="1">
</div>
<div class="blocks form-group">
<label>Blocks number: </label>
<input type="number" class="form-control" name="blocks" min="1">
</div>
<div class="form-group">
<label>Output neurons number: </label>
<input type="number" class="form-control" name="output-nodes" min="1">
</div>
</div>
<div class="col-md-4 train-data">
<h3>Training data:</h3>
<form>
<div class="form-group">
<textarea rows="16" class="form-control" name="training-data" placeholder="Training data should be in the form of a CSV with number of elements in a row corresponding to the structure of the network. (num. of input nodes + num. of output nodes)"></textarea>
</div>
</form>
</div>
<div class="col-md-4 saving-data">
<h3>Parameters:</h3>
<form>
<div class="form-group">
<label>Learning rate:</label>
<input type="number" class="form-control" name="learning-rate" step="0.001" min="0.001" value="0.001">
</div>
<div class="form-group">
<label>Iterations:</label>
<input type="number" class="form-control" name="iterations" min="1" value="10000">
</div>
<div class="form-group">
<label>Error rate:</label>
<input type="number" class="form-control" name="error-rate" step="0.001" min="0.001" value="0.005">
</div>
<div class="checkbox">
<label><input type="checkbox" name="shuffle" value="shuffle">Shuffle</label>
</div>
<div class="form-group">
<label>Cost</label>
<select class="form-control" name="cost">
<option>ENTROPY</option>
<option>MSE</option>
<option>BINARY</option>
</select>
</div>
</form>
</div>
<button class="train-network col-md-12 btn-lg btn-success">TRAIN</button>
</div>
<h2 class="network-visualization">
<span class="glyphicon show-hide glyphicon-minus"></span>
<span class="glyphicon show-hide glyphicon-plus hidden"></span>
Save / Load Network
</h2>
<div class="row save-load">
<button class="save-network col-md-4 btn-lg btn-success">SAVE</button>
<form class="col-md-offset-2 col-md-4">
<textarea rows="2" class="form-control" name="load-network-content" placeholder="Enter the network in JSON format."></textarea>
</form>
<button class="load-network col-md-2 btn-lg btn-success">LOAD</button>
</div>
<h2 class="network-visualization">
<span class="glyphicon show-hide glyphicon-minus"></span>
<span class="glyphicon show-hide glyphicon-plus hidden"></span>
Network Visualization
</h2>
<div class="row visualization">
<div class="col-md-7 network-display">
<svg width="600" height="400"></svg>
</div>
<div class="col-md-5 error-graph">
<svg width="400" height="300"></svg>
<div class="col-md-6 error-value"><p></p></div>
<div class="col-md-6 final-error-value">Final error: <p></p></div>
</div>
</div>
<h2 class="network-testing">
<span class="glyphicon show-hide glyphicon-minus"></span>
<span class="glyphicon show-hide glyphicon-plus hidden"></span>
Network Testing
</h2>
<div class="row network-testing">
<form class="form-inline col-md-12">
<div class="form-group col-md-12">
<div class="col-md-3">
<h3>Input: </h3>
<textarea rows="10" class="form-control" cols="30" name="test-data"></textarea>
</div>
<div class="col-md-9">
<h3>Results: </h3>
<table class="test-output table table-bordered">
<tr>
<th>Input data</th>
<th>Result</th>
<th>Expected</th>
<th>Variance</th>
</tr>
</table>
</div>
</div>
</form>
<button class="btn btn-success test-network col-md-5">Test</button>
</div>
</div>
<script src="lib/imports/jquery-1.12.3.min.js"></script>
<script src="lib/imports/bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
<script src="lib/imports/underscore-min.js"></script>
<script src="lib/imports/d3.js"></script>
<script src="lib/imports/synaptic.js"></script>
<script src="static/js/ui.js"></script>
<script src="static/js/initd3.js"></script>
<script src="static/js/LSTM.js"></script>
</body>
</html>