-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneural_network.html
184 lines (172 loc) · 6.51 KB
/
neural_network.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RAY</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">RAY</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" class="active"><a href="neural_network.html">Perceptron</a></li>
<li role="presentation"><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>Perceptron structure:</h3>
<div class="form-group">
<label>Input layers number: </label>
<input type="number" class="form-control" name="input-nodes" min="1">
</div>
<div class="hidden-layer form-group">
<label>Hidden layers number: </label>
<input type="number" class="form-control" name="hidden-nodes" min="1">
<div class="append-layer" type="hidden"></div>
<button class="add-hidden-layer btn btn-primary">Add hidden layer</button>
<button class="remove-hidden-layer btn btn-danger hidden">Remove last hidden layer</button>
</div>
<div class="form-group">
<label>Output layers 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-10 network-display">
<svg width="1000" height="600"></svg>
</div>
<div class="col-md-3 weights-table">
<h3>Weights table </h3>
<table class="table table-bordered">
<tr>
<th>From</th>
<th>To</th>
<th>Weight</th>
</tr>
</table>
</div>
<div class="col-md-3 bias-table">
<h3>Bias table </h3>
<table class="table table-bordered">
<tr>
<th>Neuron</th>
<th>Bias</th>
</tr>
</table>
</div>
<div class="col-md-6 error-graph">
<svg width="500" 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-5">
<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="test-network btn-lg btn-success col-md-2">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/perceptron.js"></script>
</body>
</html>