-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (107 loc) · 3.39 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=0.5" />
<link rel="stylesheet" href="style.css" />
<title>C4.5 Visulizer</title>
</head>
<body>
<div class="title-container">
<a
href="https://github.com/saliherdemk/C4.5-Algorithm-Visulizer"
target="blank"
>
<img
src="media/githubLogo.png"
alt=""
id="github"
style="position: absolute; right: 0px"
/>
</a>
<h1>C4.5 Algorithm Visualizer</h1>
</div>
<div id="drop-area">
<div id="drag-drop">
<button onclick="extractData('default')" id="default-ds-btn">
Continue with default data set
</button>
<hr />
<header>Drag & Drop to Upload File</header>
<span id="alert">(Only .csv or .xlsx)</span>
</div>
<span>OR</span>
<button onclick="inputClick()" id="browse">Browse File</button>
<input
type="file"
id="get_excel_input"
accept=".xlsx, .xls, .csv"
hidden
/>
<div id="info">
<ul>
Pre-processing is recommended (Convert continuous values to nominal
ones)
</ul>
<ul>
First row will be considered as attributes
</ul>
<ul>
Last column will be considered as labels
</ul>
</div>
</div>
<div class="buttons hidden">
<div class="left-buttons">
<button onclick="reset()" id="reset-table" class="btn">
New Dataset
</button>
<span id="row-info">
<span>Shown rows: </span>
<span id="curr-rows"></span>
<span>/</span>
<span id="total-rows"></span>
</span>
<button onclick="toggleTable()" id="toggle-table" class="btn">
Shrink Table
</button>
</div>
<div id="row-inputs">
<select name="rows" id="select-row" onchange="setIncreaseRow()">
<option value="5">5</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
<button onclick="generateTable()" id="show-row" class="btn">
Show More Rows
</button>
</div>
</div>
<div class="table-container">
<table></table>
</div>
<div class="graph-btns hidden">
<button class="go-btn" onclick="goToNode('root')">Back to Root</button>
<button class="go-btn" onclick="goToNode('node')">Predicted Node</button>
<button class="go-btn" onclick="clearNodeColor()">Clear</button>
</div>
<div class="graph hidden"></div>
</body>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.core.min.js"
integrity="sha512-UhlYw//T419BPq/emC5xSZzkjjreRfN3426517rfsg/XIEC02ggQBb680V0VvP+zaDZ78zqse3rqnnI5EJ6rxA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="./js/d3.js"></script>
<script src="./js/variables.js"></script>
<script src="./js/scrollAndZoom.js"></script>
<script src="./js/draw.js"></script>
<script src="./js/node.js"></script>
<script src="./js/file.js"></script>
<script src="./js/script.js"></script>
<script src="./js/generateTable.js"></script>
</html>