-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDecisionTree.html
More file actions
127 lines (120 loc) · 3.11 KB
/
DecisionTree.html
File metadata and controls
127 lines (120 loc) · 3.11 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>決策樹</title>
<link rel="stylesheet" type="text/css" href="css/DecisionTree.css">
<script type="text/javascript" src="javascript/DecisionTree.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<div id="goWeka">
<a href="DecisionTreeJPEG.html">WEKA決策樹圖</a>
</div>
<div id="choicetable">
<table>
<tr>
<td>
<div class="theform">
<h5>age :  </h5>
<input type="text" id="agetext">
</div>
</td>
<td>
<div class="theform">
<h5>sex :  </h5>
<select id="sexselect">
<option value="MALE">male</option>
<option value="FEMALE">female</option>
</select>
</div>
</td>
</tr>
<tr>
<td>
<div class="theform">
<h5>education:  </h5>
<select id="educationselect">
<option value="Before-Senior-High">Before-Senior-High</option>
<option value="Bachelors">Bachelors</option>
<option value="Masters">Masters</option>
<option value="Doctorate">Doctorate</option>
</select>
</div>
</td>
<td>
<div class="theform">
<h5>marital :  </h5>
<select id="maritalselect">
<option value="Married">Married</option>
<option value="Divorced">Divorced</option>
<option value="Separated">Separated</option>
</select>
</div>
</td>
</tr>
<tr>
<td>
<div class="theform">
<h5>children :  </h5>
<select id="childrenselect">
<option value="zero">0</option>
<option value="one">1</option>
<option value="two">2</option>
</select>
</div>
</td>
<td>
<div class="theform">
<h5>workclass :  </h5>
<select id="workclassselect">
<option value="Government">Government</option>
<option value="Private">Private</option>
</select>
</div>
</td>
</tr>
<tr>
<td>
<div class="theform">
<h5>race :  </h5>
<select id="raceselect">
<option value="White">White</option>
<option value="Black">Black</option>
<option value="Asian">Asian</option>
<option value="Other">Other</option>
</select>
</div>
</td>
<td>
<div class="theform">
<h5>workhours :  </h5>
<input type="text" id="workhourstext">
</div>
</td>
</tr>
</table>
</div>
<div id="confirmAndPep">
<table>
<tr>
<td>
<button id="confirmbtn" class="btnStyle" onclick="confirm()">confirm and send</button>
</td>
<td>
<h5>Predicted Income</h5>
</td>
<td id="finalanswer"></td>
</tr>
</table>
</div>
<div id="btnPalce">
<button class="btnStyle" onclick="gohome()">回主頁</button>
  
<button class="btnStyle" onclick="clearResult()" >清除</button>
  
<button class="btnStyle" onclick="toKmeans()" >Kmeans</button>
<br>
</div>
</body>
</html>