A comprehensive collection of Machine Learning, Deep Learning, and Reinforcement Learning algorithms implemented from scratch with Python. This repository focuses on learning algorithm logic, building core intuition, and understanding how ML systems work behind the scenes.
This project contains implementations of classic and modern ML, DL, and RL algorithms — each written to demonstrate the internal mechanics, not just library usage.
This repo is ideal for: ✔ Learning machine learning fundamentals ✔ Strengthening algorithm intuition ✔ Preparing for ML interviews ✔ Academic reference and study
Regression
linear_regression.py— Linear RegressionPolynomial_regression.py— Polynomial RegressionRidge_lasoo_regression.py— Ridge & Lasso RegressionGradient_bosting.py— Gradient Boosting Regression
Classification
logistic_regression.py— Logistic Regressionknn.py,k_nearest_neightbours.py— K-Nearest NeighborsSVM.py— Support Vector Machinesdecision_trees.py— Decision Tree ClassifierRandom_forest.py— Random Forest Classifier
k_means_clustering.py— K-Means ClusteringHierarchical_clustering.py— Hierarchical Clusteringdbscan.py— DBSCAN ClusteringGausian_mixture.py— Gaussian Mixture Models
Principal_component_analysis.py— PCATSNE.py— t-SNE
cnn.py— Convolutional Neural Networkrnn.py— Recurrent Neural Networklstm.py— LSTM NetworkAutoencoders.py— AutoencoderSelf_training_encoders.py— Self-Training Encoderstransformers.py— Transformer Architecture
QLearning.py— Q-LearningDeepQNetworks.py— Deep Q NetworksPolicyGradient.py— Policy Gradient Methods
native_bytes.py— Misc utility examplemain.py— Example runner script (entry point pattern)
This repository emphasizes: ✅ Algorithm fundamentals — how they work ✅ Python implementations from scratch ✅ Exposure to multiple ML paradigms ✅ Minimal reliance on black-box libraries ✅ Clear progression from basic → advanced
| Category | Technology |
|---|---|
| Language | Python 🐍 |
| Libraries Used | Numpy, Pandas, Scikit-learn (optional), Matplotlib (optional visualization) |
| Focus | ML / DL / RL fundamentals |
| Repository Type | Educational + Reference |