Procedure:
Step1: Open the data file in Weka Explorer. It is presumed that the
required data fields have been discretized. In this example it is age
attribute.
Step2: Clicking on the associate tab will bring up the interface for
association rule algorithm.
Step3: We will use FP-Growth algorithm. This is the default
algorithm.
Step4:
Inorder to change the parameters for the run (example support, confidence etc)
we click on the text box immediately to the right of the choose button.
Data set:
Shopping.arff
@relation shopping
@attribute milk{yes,no}
@attribute bread{yes,no}
@attribute honey{yes,no}
@attribute ghee{yes,no}
@attribute jam{yes,no}
@data
yes,yes,no,no,yes
no,yes,no,yes,no
no,yes,yes,no,no
yes,yes,no,yes,no
yes,no,yes,no,no
no,yes,yes,no,no
yes,no,yes,no,no
yes,yes,yes,no,yes
yes,yes,yes,no,no
No comments:
Post a Comment