-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (77 loc) · 2.36 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
<!DOCTYPE html>
<html >
<head>
<title>Association Rule</title>
<link rel="stylesheet" type="text/css" href="bootstrap-theme.min.css">
</head>
<body ng-app="AssociationRule" ng-controller="AssociationRuleController" >
<input type="file" id="files" name="file" class="btn btn-default "/>
<button ng-click="readFile('files')">load</button>
<button ng-click="initializationItemSet()">inisialisasi</button>
<button ng-click="cariAssociation()">cari Association</button>
<button ng-click="getConfidence()">cari Confidence</button>
<!-- <div class="row">
<div class="col-md-6">
erre
</div>
<div class="col-md-6">
erer
</div>
</div> -->
<table border="1">
<tr>
<th>transaksi</th>
</tr>
<tr ng-repeat="x in transaksi">
<td ng-repeat="y in x">{{y}}</td>
</tr>
</table>
<br>
<!-- <div ng-repeat="x in transaksi"> {{x}} </div> -->
<div class="row">
<div style="float:left;">
<table border="1">
<tr>
<th>item set</th>
</tr>
<tr ng-repeat="x in itemSet ">
<td ng-repeat="y in x">{{y}}</td>
</tr>
</table>
</div>
<div style="float:left;">
<table border="1">
<tr>
<th>jumlah</th>
</tr>
<tr ng-repeat="x in banyakItemSetDitransaksi track by $index">
<td >{{x}}</td>
</tr>
</table>
</div>
<div style="float:left;">
<table border="1">
<tr>
<th>support</th>
</tr>
<tr ng-repeat="x in nilaiSupport track by $index">
<td >{{x}}</td>
</tr>
</table>
</div>
</div>
<div ng-show="AssociationRule != null">
<span>association yang didapatkan:</span>
<div ng-repeat="x in AssociationRule track by $index">
<span>jika seseorang membeli {{x[0]}}, maka tingkat keyakinan dia membeli {{x[1]}} adalah {{x[2]*100}} %</span>
<span> </span>
</div>
</div>
<!-- <div style="float:left;"><div ng-repeat="y in itemSet"> {{y}} </div></div> -->
<!-- <div style="float: left;"><div ng-repeat="z in banyakItemSetDitransaksi track by $index"> {{z}} </div></div> -->
<script type="text/javascript" src="jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript" src="read-data.js"></script>
</body>
</html>