Data Mining - Classification Using Frequent Pattern
Data Mining - Classification Using Frequent Pattern
1. How to find confusion matrix for class more than 2 ? and how to calculate the
accuracy ?
The total numbers of false negative (TFN), false positive (TFP), and true
negative (TTN) for each class i will be calculated based on the Generalized
Equations 1, 2, and 3, respectively. The total true positive in the system will
be obtained through Equation 4.
1. First Equation
2. Second Equation
3. Third Equation
4. Fourth Equation
To compute the generalized precision (P), recall (R), and specificity(S) for
each class i, we use :
5. Fifth Equation
6. Sixth Equation
7. Seventh Equation
In the last decade, several AC algorithms have been proposed such as Classification
based Association (CBA), Classification based on Predicted Association Rule (CPAR),
Multi-class Classification using Association Rule (MCAR). Generally, Associative
Classification consists of three major processes;
a. Mine the data for frequent itemsets, that is, find commonly occurring
attribute–value pairs in the data, in this step we mines the complete set
of association rules from a training dataset. These association rules are
called class association rules.
b. Analyze the frequent itemsets to generate association rules per class,
which satisfy confidence and support criteria, this step we evaluated the
association rules identified by the rule discovery process and selecting the
rules, which gives the best accuracy, to form a classifier.
c. Organize the rules to form a rule-based classifier. in this step we
organizes data samples from a test dataset.
2. Confidence
Confidence measures the likeliness of occurrence of consequent on the cart given that
the cart already has antecedents. For example we have transaction {bread}->{milk}, and
also we have {bread}->{butter}. If we want to calculate the confidence of
{bread}->{milk} so we have to calculate all the transaction that containing {bread} and
{milk} divided by all the transaction that contains {bread}. Mathematically we can say
as: