This repository is a collection of core machine learning algorithms implemented from scratch in Python.
The goal is to gain a deeper understanding of how these algorithms work under the hood, without relying on libraries like scikit-learn.
- Learn how ML algorithms work by coding them manually
- Great for students, researchers, and anyone curious about ML internals
- Compare hand-crafted algorithms with scikit-learn counterparts
Simple_Linear_Regression.py: Manual implementation of linear regressionscikit_learn_works.py: Comparison using scikit-learnrequirements.txt: Dependencies
git clone https://github.com/hincaltopcuoglu/ML_Algorithms_by_Hand.git
cd ML_Algorithms_by_Handpython3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtpython Simple_Linear_Regression.py🧠 Current Algorithms
✅ Simple Linear Regression
(More algorithms will be added in the future.)🤝 Contributing
Contributions are welcome! If you’d like to:
Improve or refactor the code
Add new ML algorithms
Fix bugs or enhance documentation
Feel free to open a pull request or issue.📄 License
This project is licensed under the MIT License — see the LICENSE file for details.