addition of unit 1 3 4 5

This commit is contained in:
Akshat Mehta
2025-11-24 16:55:19 +05:30
parent 8f8e35ae95
commit f8aea15aaa
24 changed files with 596 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# 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).