Files
DMCT-NOTES/unit 4/05_Rule_Based_Classification.md
2025-11-24 16:55:19 +05:30

616 B

Rule-Based Classification

Rule-Based Classifiers use a set of IF-THEN rules to classify data.

Structure

  • Rule: IF (Condition) THEN (Class)
  • Example:
    • IF (Age = Youth) AND (Student = Yes) THEN (Buys_Computer = Yes)

Extracting Rules from Decision Trees

  • We can easily turn a decision tree into rules.
  • Each path from the Root to a Leaf becomes one rule.
  • The conditions along the path become the IF part (joined by AND).
  • The leaf node becomes the THEN part.

Advantages

  • Easy for humans to understand.
  • Can be created directly or from other models (like trees).