Random Forest is an ensemble learning method that builds multiple decision trees and averages their predictions.
- Works for both classification and regression
- Reduces overfitting compared to a single decision tree
- Handles non-linear relationships well
- Built-in feature importance ranking
We will use the built-in
mtcarsdataset to predict miles per gallon (mpg)