This repository contains implementations of various machine learning algorithms in Python. Each algorithm is implemented from scratch to provide a deeper understanding of how they work.
To use the algorithms provided in this repository, you'll need Python 3.x installed on your system. Additionally, you can install the required dependencies using pip:
pip install -r requirements.txt
Each algorithm is implemented as a separate Python script in the algorithms
directory. To use a specific algorithm, simply run its corresponding script. For example:
python decision_tree.py
This will execute the Decision Tree algorithm and display the results.
Currently, the following algorithms have been implemented:
- Decision Tree
- K-Nearest Neighbors
- Linear Regression
- Logistic Regression
- Naive Bayes
- Random Forest
- Support Vector Machine
Each algorithm is well-documented with explanations of its implementation and usage.
Contributions to this repository are welcome. If you'd like to contribute an implementation of a new algorithm or improve an existing one, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/improvement
) - Implement your changes.
- Test your changes thoroughly.
- Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature/improvement
) - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.