-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
31 lines (26 loc) · 984 Bytes
/
index.php
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Apriori Alghoritm</title>
</head>
<body style="font-family: monospace;">
<?php
ini_set('max_execution_time', -1);
ini_set('memory_limit', '2048M');
// include 'CreateData.php';
// new CreateData();Q
include 'Apriori.php';
$Apriori = new Apriori();
$Apriori->setMaxScan(5); //Scan 2, 3, ...
$Apriori->setMinSup(5); //Minimum support 1, 2, 3, ...
$Apriori->setMinConf(80); //Minimum confidence - Percent 1, 2, ..., 100
$Apriori->setDelimiter(','); //Delimiter
$Apriori->process('dataset.txt');
?>
<h1>Frequent Itemsets</h1>
<?php $Apriori->printFreqItemsets(); ?>
<h1>Association Rules</h1>
<?php $Apriori->printAssociationRules(); ?>
</body>
</html>