-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
33 lines (31 loc) · 1.88 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
<html>
<head><title>Decision Tree</title>
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/h5bp.css">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.treeview.js"></script>
<script type="text/javascript" src="dt.js"></script>
<link type="text/css" href="jquery.treeview.css" rel="stylesheet" />
</head>
<body>
<button onclick="load_data('datasets/weather_nominal_data.txt','Should I play tennis today?');">Weather (nominal)</button>
<button onclick="load_data('datasets/weather_numeric_data.txt','Should I play tennis today?');">Weather (numeric)</button>
<button onclick="load_data('datasets/vote_data.txt','Who should I vote for?');">Vote</button>
<button onclick="load_data('datasets/mushroom_data.txt','What kind of mushroom am I looking at?');">Mushroom</button>
<button onclick="load_data('datasets/labor_data.txt','Is this labor negotiation good or bad?');">Labor</button>
<div id="explanation" style="float:right;width:50%;">
<h2>Purpose</h2>
<p>The goal of this assignment was to create an application that would take factual data, and create a decision tree that can be used to make a decision. The data is divided into two groups at random, half is used to train the decision tree, and half is used to test the decision tree. Assorted data was provided to test the process.</p>
<h2>Decision Trees</h2>
<p>A decision tree can be used to assist in making a decision. The root of a tree is a question and each branch a potential answer. In other words, an automatically generated flow chart.</p>
</div>
<div id="question"></div>
<h2>Decision Tree:</h2>
<ul id="tree"><li style="list-style-type:none;">Select data to be loaded above.</li></ul>
<div id="stats"></div>
<footer>
Built by <a href="http://louisbourque.ca/">Louis Bourque</a>.
</footer>
</body>
</html>