Rule based algorithm
Rule based algorithm
IF-THEN Rules
Rule-based classifier makes use of a set of IF-THEN rules for classification. We can express a rule in
the following from –
Points to remember –
Rule Extraction
Here we will learn how to build a rule-based classifier by extracting IF-THEN rules from a
decision tree.
1. One rule is created for each path from the root to the leaf node.
2. To form a rule antecedent, each splitting criterion is logically ANDed.
3. The leaf node holds the class prediction, forming the rule consequent.
Highly expressive.
Easy to interpret.
Easy to generate.
Capability to classify new records rapidly.
Performance is comparable to other classifiers.
Better suited for handling imbalanced classes
Disadvantages
2. If the ruleset is large then it is complex to apply the rule for classification.
3. For large training set the large number of rules generated requires a large amount of memory.
4. During rule generation extra computation is needed to simplify and purn the rules.
Applications of Rule-Based Classification:
Credit Scoring: Assessing creditworthiness by analyzing factors like income, credit history, and
debt-to-income ratio.
Predictive Maintenance: Predicting when maintenance is needed before equipment breaks
down.
Spam Filtering: Identifying and blocking unwanted spam messages based on keywords or
sender information.
Quality Control: Analyzing product quality data to identify defects and improve production
processes.
Medical Diagnosis: Assisting in diagnosing diseases based on symptoms and test results.
Fraud Detection: Identifying fraudulent transactions or activities.
Step 6: Stop