What is a confusion matrix and why do you need it?
- Random Forest: An ensemble of decision trees where each tree is built independently. Reduces overfitting and provides feature importance.
- Gradient Boosting: Builds trees sequentially, correcting errors from previous trees. Typically achieves higher accuracy but can be prone to overfitting.