You are on page 1of 9

DATA WAREHOUSING AND MINING LAB

Assignment – 8

Made By:
Altaf Khan
CSE-1
191112029
Contents
1. Perform Association mining using the Apriori algorithm with the WEKA tool. ...... 3
• Download and install WEKA. ................................................................................ 3
• Create or Download data in (.arff) file format........................................................ 3
• Open WEKA explorer and upload the data file. ..................................................... 3
• Set parameter values for Apriori ............................................................................. 4
i. By applying the apriori algorithm in the supermarket dataset, with default
parameters, we get the following result- .................................................................. 4
ii. Next Iteration with minimum support: 0.5, confidence- 0.9, andnumber of rules
10 5
iii. Next Iteration with minimum support: 0.3, confidence- 0.9 and numberof rules
10. ............................................................................................................................. 7
iv. Next Iteration with minimum support: 0.1, confidence- 0.8, and numberof rules
5. 9
1. Perform Association mining using the Apriori algorithm with the WEKA tool.
• Download and install WEKA.

• Create or Download data in (.arff) file format.


We Have the Releation_supermarket dataset, which is in the “.arff” extension.

• Open WEKA explorer and upload the data file.


In the supermarket dataset, we have a total of 4627 instances, each having 217
attributes.

• Set parameter values for Apriori: minimum support, confidence, no.


of rules, etc. Analyze the Result and repeat the process with
different parameters.

i. By applying the apriori algorithm in the supermarket dataset,


with default parameters, we get the following result-
Minimum Support- 0.15 | Confidence- 0.9 | Number of Rules- 10
- The largest item set that we can obtain was of length 6 and it has 1 instance.
- Best Rules Found

i. Next Iteration with minimum support: 0.5, confidence- 0.9,


andnumber of rules 10
- The largest itemset that we obtain was of length 2 and it has 2 instance
- We haven’t got any rules.

i. Next Iteration with minimum support: 0.3, confidence- 0.9 and


numberof rules 10.
- Item set of length 3 obtain but haven’t got any rules.
i. Next Iteration with minimum support: 0.1, confidence- 0.8, and
numberof rules 5.

- We have obtained the itemset of length 3 and we also get 5 associate rules
regarding the supermarket dataset.

Approach Used- I have applied the Apriori algorithm in the given supermarket
dataset using the Weka Tool. I have used different values, in parameters such as
minimum support, minimum confidence, and the number of rules and tried to
analyze the number of itemsets and associate rules generated

You might also like