Skip to content

Dinesh-Sharma2004/ML_Algorithm_from_scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 

Repository files navigation

ML_Algorithm_from_scratch

This repository contains implementations of fundamental Machine Learning algorithms from scratch using only Python and core libraries like NumPy , Pandas and Matplotlib.
The goal is to understand the inner workings of ML models by building them step-by-step without relying on high-level frameworks such as scikit-learn or TensorFlow.


πŸš€ Implemented Algorithms

  • Linear Regression

  • Logistic Regression

  • Decision Tree

  • k-Nearest Neighbors (k-NN)

  • Naive Bayes

  • DBSCAN

  • K Means

  • Support Vector Machine

  • Random Forest

(More algorithms can be added later!)


πŸ“‚ Project Structure

ML_Algorithm_from_scratch-main/

│── ML/

β”‚ β”œβ”€β”€ Linear_regression/ # Implementation of Linear Regression

β”‚ β”œβ”€β”€ Logistic_regression/ # Implementation of Logistic Regression

β”‚ β”œβ”€β”€ KNN/ # Implementation of k-Nearest Neighbors

β”‚ β”œβ”€β”€ Decision_Tree/ # Implementation of Decision Tree

β”‚ β”œβ”€β”€ Random_Forest/ # Implementation of Random Forest

β”‚ β”œβ”€β”€ K_Means/ # Implementation of K means clustering

β”‚ β”œβ”€β”€ DBSCAN/ # Implementation of DBSCAN

β”‚ β”œβ”€β”€ Naive_Bayes/ # Implementation of Naive Bayes

β”‚ β”œβ”€β”€ SVM/ # Implementation of Support Vector Machine

│── README.md # Project documentation

yaml Copy code


⚑ Installation

Clone the repo:

git clone https://github.com/yourusername/ML_Algorithm_from_scratch.git
cd ML_Algorithm_from_scratch

πŸ§‘β€πŸ’» Usage

Run a specific algorithm example:

bash Copy code python ML/Linear_regression/linear_regression.py Or explore all algorithm folders individually.

🎯 Learning Objectives

Strengthen intuition behind machine learning algorithms.

Understand how training, optimization, and evaluation work internally.

Gain confidence to implement and debug ML models without black-box libraries.

🀝 Contributing

Contributions are welcome!

Fork the repo

Create a new branch (feature-new-algo)

Commit your changes

Submit a Pull Request πŸŽ‰

πŸ“œ License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published