shivangisingh564490
12 views
14 slides
Aug 27, 2025
Slide 1 of 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
About This Presentation
Rule based classifier .
Size: 43.62 KB
Language: en
Added: Aug 27, 2025
Slides: 14 pages
Slide Content
Rule-Based Classifier
Introduction Definition: Classifier that uses IF–THEN rules for classification. Example: IF (Age < 30 AND Income = High) THEN Class = 'Yes'
Features of Rule-Based Classifiers - Human-readable & interpretable - Handles categorical and numerical data - Flexible & modular - Easy explanation for decision-making
Structure of Rules General form: IF (Condition) THEN (Class) - Conditions: attributes, thresholds, or categorical values - Class: output label
Rule Generation Approaches - Direct methods: from data (e.g., decision tree → rules) - Indirect methods: from association rule mining - Manual knowledge-based rules
Example Dataset & Rules Dataset: Attributes = Age, Salary, Buy Rules: - IF Age < 25 AND Salary = Low THEN Buy = No - IF Age > 40 AND Salary = High THEN Buy = Yes
Rule Ordering Strategies - Sequential covering: remove covered records - Rule prioritization: accuracy, coverage, confidence - Default Rule: applied when no rule fires
Metrics for Evaluation - Accuracy: Correctly classified / Total - Coverage: Portion of instances rule applies to - Precision, Recall, F1-score
Advantages - Transparent & interpretable - Suitable for domains needing explanations - Easy integration with expert knowledge
Limitations - Can overfit with too many rules - Conflicting rules → ambiguity - Not efficient for very large datasets