-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
68 lines (62 loc) · 2.51 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
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"> </script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-vis"></script>
<script src="jonas.js"></script>
<script src="praful.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
body {
color: navy;
font-family: courier
}
h2 {
color: maroon
}
</style>
</head>
<body>
<div class="container-fluid">
<h2>tfjs playground
<span style="font-size:small">
[<a href="https://github.com/episphere/tfjs" target="_blank">code</a>, live at
<a href=https://episphere.github.io/tfjs>https://episphere.github.io/tfjs</a>]
</span>
</h2>
<p>There is nothing to see here, all the action in in the console.</p>
<p>Anything you pass in hash will be executed as a command</p>
<hr>
<li><a href="#jonas()" onclick="jonas()">#jonas()</a> saying hello</li>
<li><a href="#jonas.getIris()" onclick="jonas.getIris()">#jonas.getIris()</a> iris data at jonas.irisData</li>
<li><a href="#jonas.layers()" onclick="jonas.layers()">#jonas.layers()</a> exploring <a href="https://www.tensorflow.org/js/guide/layers_for_keras_users" target="_blank">tfjs layers as Keras</a>.</li>
<br />
<hr />
<br />
<li>
Train model with default hyperparameters -
<a href="#praful()" target="_blank">#praful()</a>
</li>
<br/>
<li>
Train model with custom hyperparameters -
<a href='?split=0.2&arch=[5,3,3]&activation=tanh&bias=false&optimizer=sgd&loss=categoricalCrossentropy&metrics=["accuracy","precision"]&epochs=100&batchSize=8#praful()' target="_blank">?split=0.2&arch=[5,3,3]&activation=tanh&bias=false&optimizer=sgd&loss=categoricalCrossentropy&metrics=["accuracy","precision"]&epochs=100&batchSize=8#praful()</a>
</li>
<br/>
<li>
Load CSV Using TF.js -
<a href="?csvPath=https://episphere.github.io/qaqc/iris.csv&labelCol=species#praful.loadDataset()">?csvPath=https://episphere.github.io/qaqc/iris.csv&labelCol=species#praful.loadDataset()</a>
</li>
<div id="prafulVis">
<br/>
<br/>
<button class="btn btn-primary" onclick="praful.visor.toggle(); return false;">Toggle Visor</button>
</div>
</div>
<script>
if (location.hash.length > 2) {
eval((location.hash).slice(1))
}
</script>
</body>
</html>