



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Software tool Weka 3.6.10 is used for this assignment.Zoo.arf is the data set on which we apply different functions and experience some new things. Rules which we extracted from this data set are very useful to classify different animals according to their type e.g. tested on different parameters
(Attributes).
Zoo.arff is data set which is selected for the purpose of association rule mining (Apriori).Data set contains data about animals and their features. Data about different animals is inserted for the purpose of training and then animal is classified according to their types. Type is a nominal attribute having seven possible values e.g. mammal, bird, reptile, fish, amphibians, insects, invertebrates. According to different features animals are test and then classified. Data set contains 18 attributes/ features and 101 instances that are classified into above mentioned types.
The reason behind the choice of this data set is the requirement of assignment. As according to assignment preprocessing is necessary so I choose this data set because this data set contains missing values and some other problems like it contains numeric data and Apriori algorithm is not enable on this data. Association rules are often used in situation where attributes are binary or nominal. On numeric values it is disabled, and this data set contains attributes of numeric type so initially Apriori is disabled on this. So after preprocessing e.g. discretizing, converting attributes numeric to nominal and estimating the missing value apriori will be enabled. Legs is an attribute of numeric type we cannot discard or delete this entire attribute because size of legs is also an important measure for classifying into type so we can apply filtering but cannot delete this attribute as it leads to loss of important data. Attributes of this data set does not contain noisy data or outliers for which we have to apply binning or other methods to solve this.
So for preprocessing following steps are needed
For the purpose of removing missing values default values are estimated and then fill with these values. After estimating it can be done through weka, Edit your data set and then right click on attribute which have missing value and then select option fill missing values with default ones.
After inserting missing value data set will look like
After applying filtering (numeric to nominal) data will look like
Rule mining process:
Parameter setting involves filtering process which is applied to parameter legs so that it can be converted into nominal data type for purpose of enabling algorithm.Apriori algorithm is choose in association rule mining for this data. For this we go to associate section in weka explorer and choose Apriori associator if preprocessing is applied then Apriori will be enabled
Rules:
After applying aprori algorithm we will get 10 best rules from data set and these 10 rules are as following with confidence:
Through applying lift: