ajay-dhangar / algo

This repository contains a collection of data structures and algorithms implemented in various programming languages. It is designed to help learners understand key concepts through hands-on examples. Contributions and improvements are welcome!
https://ajay-dhangar.github.io/algo/
MIT License
71 stars 214 forks source link

[Feature Request] Random Forest Algorithm in ML #958

Closed kartik1112 closed 1 week ago

kartik1112 commented 1 week ago

πŸš€ Feature Request Random Forest Algorithm in ML

Is your feature request related to a problem? Please describe.

Currently, decision tree-based models often suffer from overfitting or lack robustness in certain datasets. Using a single decision tree can be unreliable for high-dimensional or noisy data. A Random Forest algorithm would help mitigate these issues by aggregating multiple decision trees, leading to better predictive performance.

Describe the solution you'd like

Implement a Random Forest Algorithm, which constructs a collection of decision trees (a forest) during training and outputs the mode of classes for classification or the average prediction for regression. This ensemble approach would improve model accuracy, reduce overfitting, and handle both categorical and continuous features more efficiently.

Describe alternatives you've considered

I have considered boosting techniques or bagging individual decision trees. However, a Random Forest is preferable for handling noise and complex datasets without requiring excessive tuning.

Additional context

Adding this feature would enhance the model's scalability and flexibility, making it suitable for a wide range of real-world applications, including classification and regression tasks in various domains like finance, healthcare, and e-commerce.


Would you like to work on this feature?

github-actions[bot] commented 1 week ago

πŸ‘‹ Hi @kartik1112! Thank you for opening your first issue on the Algo project. We're excited to help you out and appreciate your contribution. Please provide as much detail as possible to assist us in addressing the issue effectively. Welcome aboard! 😊

github-actions[bot] commented 1 week ago

πŸ‘‹ Hi @kartik1112! Thanks for opening this issue. We appreciate your contribution to the Algo project. Our team will review it soon.

dev628140 commented 1 week ago

Hi, I would like to work on this issue. Please assign this to me

kartik1112 commented 1 week ago

Thanks @dev628140 but I've already raised a PR

kartik1112 commented 1 week ago

@ajay-dhangar already opened a PR for this issue please review