Lab Report Using WEKA Lab Report Using WEKA
Lab Report Using WEKA Lab Report Using WEKA
TABLE OF CONTENTS
Introduction
WEKA (Waikato Environment for Knowledge Analysis) is a popular open-source tool for data
mining and machine learning. It provides a collection of algorithms and tools for data
preprocessing, classification, regression, clustering, and association rule mining. This report
covers the implementation of various data mining algorithms using WEKA, including the Apriori
and FP-growth algorithms for association rule mining, ID3 and Bayesian algorithms for
classification, and K-means for clustering.
1. Load Dataset : Import a dataset suitable for association rule mining (e.g.,
`Supermarket.arff`).
2. Select Algorithm : Go to the `Associate` tab.
3. Choose Apriori : Select `Apriori` from the list of association algorithms.
4. Set Parameters : Adjust parameters such as `Support` and `Confidence`.
5. Run Algorithm : Click `Start` to run the Apriori algorithm.
6. View Results : Analyze the output rules and their support and confidence values.
Dataset: breast-cancer.arff
Algorithm: Apriori
Parameters: Default
Procedure
Step 1: Open the data file (Shopping.arff) in Weka Explorer. It assumes that the required data
fields have been discretized.
Step 2: Click on the "Associate" tab to bring up the interface for the association rule algorithm.
Step 3: Use the FP-Growth algorithm (the default algorithm in Weka for association rule
mining).
Step 4: To modify parameters like support or confidence, you can adjust them in the text box
located to the right of the "Choose" button.
The data set includes the following attributes for shopping items:
1. Load Dataset :.Select vote.arff file from the “Open file” under the preprocess tab option.
2. Select Algorithm : Go to the “Classify” tab for classifying the unclassified data.
3. Choose ID3 :Click on the “Choose” button. From this, select “trees -> J48”.
(an implementation of the C4.5 algorithm, which is an extension of ID3).
4. Set Parameters : Adjust settings if necessary.
5. Run Algorithm : Click `Start` to build the decision tree.
6. View Results : Examine the decision tree and classification accuracy.To visualize the
tree, right-click on the result and select visualize the tree.
10
11
12
13
14
15
16
17
18
Conclusion
In this lab, we have explored various data mining techniques using WEKA, including
association rule mining with Apriori and FP-Growth algorithms, classification with ID3 and
Bayesian algorithms, and clustering using K-Means. WEKA provides a user-friendly interface
for applying these algorithms, allowing for effective data analysis and model building.
19