Machine Learning Algorithms: Concepts and Criteria
Decision Trees
Key Characteristics
- Advantages:
- Easy to implement
- Can extract rules
- Non-incremental (more efficient and practical, without backtracking)
- Disadvantages:
- Objective function must be discrete
- Primarily for classification problems
Stop Criteria
- All examples belong to the same class
- All samples have the same value for attributes
- The gain on each split is insignificant
- The number of samples has reached a certain limit
Overfitting Problem
If the number of nodes is too large, decisions are made based on very small partitions of the samples, which reduces generalization ability.
Formulas
Entropy (Ent):
Ent(S) = -(p+ * log2(p+)) - (p- * log2(p-))
Where:
Sis the set of examples for that node.p+is the probability of positive outcomes.p-is the probability