-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
202 lines (171 loc) · 7.03 KB
/
index.html
File metadata and controls
202 lines (171 loc) · 7.03 KB
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<meta charset="utf-8">
<title>Decision Tree Visualization</title>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="css/slider.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/c3.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<a class="navbar-brand" href="#">Decision Tree Visualization</a>
</div>
</div>
</nav>
<div id="left" class="col-md-8">
<div class="panel panel-default" style="margin-top:10px;">
<div class="panel-body" >
<div id="toolbar">
<div class="col-md-5">
<input id="ex6" type="text" style="width:300px;" data-slider-min="0" data-slider-max="7" data-slider-step="1" data-slider-value="7"/&t<span id="ex6CurrentSliderValLabel"><p>Current Tree Depth: <span id="ex6SliderVal">7</span></p></span>
</div>
<div class="col-md-7">
<div class="col-md-7">
<button id="pruneNode" type="button" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" title="Adjust the depth in slider, and click here to prune the tree">
<span class="glyphicon glyphicon-scissors" aria-hidden="true"> Prune</span>
</button>
<button id="addNode" type="button" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" title="Select this button, and click the leaf node to change it into split node">
<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"> Add</span>
</button>
<button id="deleteNode" type="button" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" title="Select this button, and click the split node you want to delete">
<span class="glyphicon glyphicon-minus-sign" aria-hidden="true"> Delete</span>
</button>
</div>
<div class="col-md-5">
<div class="input-group" style="padding-left:0px;width:200px;height:30px;">
<input id="searchAttr" type="text" data-provide="typeahead" class="form-control" placeholder="Search for attribute..." >
<span class="input-group-btn">
<button id="searchAttrButton" class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
</div>
</div>
</div>
<div id="mainviz"> </div>
</div>
<div id="right" class="col-md-4">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-body" style="align:center;">
<img src="img/overview4.png" alt="overview" style="width:150px;height:120px">
<button type="button" class="btn btn-primary btn-sm" style="background-color:#1f77b4;margin-left:7%;">
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true">False</span>
</button>
<button type="button" class="btn btn-default btn-sm" style="background-color:#7D0C0C;margin-right:7%;border-color:#7D0C0C;">
<span class="glyphicon glyphicon-arrow-right" aria-hidden="true">True</span>
</button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Statistics</h3>
</div>
<div class="panel-body" style="height:150px;overflow:scroll;">
<div id="stats">
<table class="table table-condensed">
<tbody>
<tr>
<td>Depth</td>
<td id = "depth"></td>
</tr>
<tr>
<td>Nodes</td>
<td id = "num_nodes"></td>
</tr>
<tr>
<td>Branch</td>
<td id = "branch_num"></td>
</tr>
<tr>
<td>Accuracy</td>
<td id = "accuracy"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Confusion Matrix</h3>
</div>
<div class="panel-body" style="height:115px;position:relative;">
<div id="attrDist">
<table class="table table-condensed">
<tbody>
<tr>
<td> </td>
<td>Real Positive</td>
<td>Real Negative</td>
</tr>
<tr>
<td>Predicted Positive</td>
<td id = "tp"></td>
<td id = "fn"></td>
</tr>
<tr>
<td>Predicted Negative</td>
<td id = "fp"></td>
<td id = "tn"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Predicted Values</h3>
</div>
<div class="panel-body" style="height:90px;overflow:scroll;">
<div id="chart" class = "c3" style="height:100px;position:relative;"></div>
</div>
</div>
<div class="panel panel-default" >
<div class="panel-heading">
<h3 class="panel-title">Attribute List</h3>
</div>
<div class="panel-body" style="height:100px;overflow:scroll;">
<!--
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
<table class="table table-condensed">
<tbody>
<div id="attr-list"></div>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
<script src="js/config.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/colorbrewer.js"></script>
<script src="js/typeahead.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-slider.js"></script> <!--http://seiyria.github.io/bootstrap-slider/-->
<script src="js/d3.v3.min.js"></script>
<script src="js/c3.js"></script>
<script src="js/d3-tip.js"></script>
<script src="js/app.js"></script>
<script src="js/newmainviz.js"></script>
<script src="js/overview.js"></script>
<script src="js/classdist.js"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<!--<script src="js/app.js"></script>-->