From 91a2b6d4b81bc46098d6c5007a45b0d0df3b572e Mon Sep 17 00:00:00 2001 From: Soubeer Koley Date: Mon, 27 May 2024 21:22:06 +0530 Subject: [PATCH] Added Random Forest --- contrib/machine-learning/Random_Forest.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/machine-learning/Random_Forest.md b/contrib/machine-learning/Random_Forest.md index d2d7f5c..59c44ef 100644 --- a/contrib/machine-learning/Random_Forest.md +++ b/contrib/machine-learning/Random_Forest.md @@ -23,8 +23,8 @@ Random Forest is a versatile machine learning algorithm capable of performing bo - [Feature Importance](#feature-importance) - [Hyperparameter Tuning](#hyperparameter-tuning) - [Regression Example](#regression-example) - - [Conclusion](#conclusion) - - [References](#references) + - [Conclusion](#conclusion) + - [References](#references) ## Introduction @@ -185,10 +185,10 @@ r2 = r2_score(y_test, y_pred) print(f"Mean Squared Error: {mse:.2f}") print(f"R^2 Score: {r2:.2f}") ``` -### Conclusion +## Conclusion 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. -### References +## References Scikit-learn Random Forest Documentation Wikipedia: Random Forest Machine Learning Mastery: Introduction to Random Forest