Skip to content

Commit 91a2b6d

Browse files
committed
Added Random Forest
1 parent 0185122 commit 91a2b6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/machine-learning/Random_Forest.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Random Forest is a versatile machine learning algorithm capable of performing bo
2323
- [Feature Importance](#feature-importance)
2424
- [Hyperparameter Tuning](#hyperparameter-tuning)
2525
- [Regression Example](#regression-example)
26-
- [Conclusion](#conclusion)
27-
- [References](#references)
26+
- [Conclusion](#conclusion)
27+
- [References](#references)
2828

2929

3030
## Introduction
@@ -185,10 +185,10 @@ r2 = r2_score(y_test, y_pred)
185185
print(f"Mean Squared Error: {mse:.2f}")
186186
print(f"R^2 Score: {r2:.2f}")
187187
```
188-
### Conclusion
188+
## Conclusion
189189
Random Forest is a powerful and flexible machine learning algorithm that can handle both classification and regression tasks. Its ability to create an ensemble of decision trees leads to robust and accurate models. However, it is important to be mindful of the computational cost associated with training multiple trees.
190190

191-
### References
191+
## References
192192
Scikit-learn Random Forest Documentation
193193
Wikipedia: Random Forest
194194
Machine Learning Mastery: Introduction to Random Forest

0 commit comments

Comments
 (0)