Skip to main content

> ML_ALGORITHM // RANDOM-FORESTS_v1.0

Random Forests

Ensemble learning method that builds hundreds of decorrelated decision trees on bootstrap subsets with random feature sampling.

Tree & Rule Ensemblesclassical-supervisedmoderate-posthocmedium (1k-100k)
Back to All Algorithms
Computational Complexity
Training Complexity:O(n_trees * p_sample * n log n)
Inference Complexity:O(n_trees * depth)
Hardware Profile
CPU Friendly:Yes
Requires GPU:No
Memory Footprint:moderate
Interpretability & Data
Interpretability Tier:moderate-posthoc
Training Data Needs:medium (1k-100k)

Interpretability Assessment

Aggregated ensemble cannot be read as a single tree; relies on MDI, MDA, and SHAP values.

Suitable Tasks & Supported Modalities

Suitable Tasks:
binary classificationmulticlass classificationregressionanomaly detection
Supported Modalities:
tabular

Implementing Libraries

scikit-learnscikit-learn Consortium / Inria · v1.5.2
View Spec
caret-r
tidymodels-r
spark-mllib
linfa

Foundational Literature

Random ForestsLeo Breiman (2001) · Machine Learning
Common Pitfalls & Warnings
  • Default Gini importance biased toward high-cardinality categorical features
  • Substantial RAM footprint when saving thousands of unpruned trees