Skip to content

ranjiGT/ai-machine-learning-codes

Repository files navigation

🤖 AI & Machine Learning Practical Codes

📚 This repository is intended for educational purposes only. All notebooks are designed to support learning and are companion resources to the YouTube channel.

YouTube Channel   Watch Playlist

125 Topics MIT License Python 3 Jupyter Binder Ready

ML & Data Science Playlist
▲ Click the thumbnail to watch the full playlist

🌐 Live Cheatsheet Website

A visual map of all 125 topics with illustrations, formulas, and stage-by-stage grouping — optimised for desktop and mobile.

Open Website

What's inside: 125 topic cards · 13 learning stages · click-to-expand modals with formulas, use-cases, and notebook links · dark/light theme · mobile-friendly layout

Website Preview


Practical Python examples for 116 Machine Learning and Data Science topics from my YouTube channel.

Difficulty legend:   🟢 Beginner  ·  🟡 Intermediate  ·  🔴 Advanced

🎯 What you'll find here

📖 Topic-wise practical code for every lecture
💻 Jupyter notebooks runnable locally
☁️ One-click cloud execution via Binder
🎬 Direct links to companion YouTube videos

🏆 Repository Goals

  • 🔹 Keep each topic short, practical, and beginner-friendly.
  • 🔹 Map every video to runnable Python code.
  • 🔹 Make it easy for subscribers to fork, run, and learn.

📁 Project Structure

.
├── notebooks/
│   ├── 01_linear_regression/
│   │   └── linear_regression_starter.ipynb
│   ├── ... (topics 02–114)
│   ├── 115_real_world_project/
│   │   └── real_world_project_starter.ipynb   ← End-to-end capstone
│   ├── 116_advanced_time_series_ml/
│   ├── 117_stream_adaptive_learning/
│   ├── 118_denstream/
│   ├── 119_adwin/
│   ├── 120_vfdt_cvfdt/
│   ├── 121_drift_detection/
│   ├── 122_monic/
│   ├── 123_shap_values/
│   ├── 124_arima_sarima/
│   └── 125_clustream/
├── src/
│   ├── data/
│   ├── ml_basics/
│   └── utils/
├── requirements.txt
├── runtime.txt
├── environment.yml
├── CONTRIBUTING.md
└── README.md

🚀 Getting Started

▶ Option 1 — Run in the Cloud (No Setup Required)

Click any launch binder badge on a topic tile below, or launch the whole repo:

Launch on Binder

⏳ First build may take a few minutes. If it times out, simply retry.


💻 Option 2 — Run Locally (Jupyter)

  1. Clone the repository.
  2. Create and activate a virtual environment.
  3. Install dependencies.
  4. Start Jupyter Lab.
git clone https://github.com/ranjiGT/ai-machine-learning-codes.git
cd ai-machine-learning-codes

python3 -m venv .venv
source .venv/bin/activate

pip install --upgrade pip
pip install -r requirements.txt

jupyter lab

📖 Topic-to-Video Mapping

125 topics across 13 themes — click a section to expand. Each tile links to the interactive Binder notebook and its companion YouTube video.

🟦 Supervised Learning — Core Classifiers (01–17)  ·  🟢 Beginner → 🟡 Intermediate

Prerequisites: Python basics, NumPy, pandas. Start here if you are new to ML.

01. Linear Regression
launch binder  ·  Watch
02. Logistic Regression
launch binder  ·  Watch
03. Decision Trees
launch binder  ·  Watch
04. Random Forest
launch binder  ·  Watch
05. KNN
launch binder  ·  Watch
06. PCA
launch binder  ·  Watch
07. Naive Bayes
launch binder  ·  Watch
08. Underfitting vs Overfitting
launch binder  ·  Watch
09. Reduced Error Pruning
launch binder  ·  Watch
10. Random Sampling
launch binder  ·  Watch
11. Cross Validation
launch binder  ·  Watch
12. Nested Cross Validation
launch binder  ·  Watch
13. Hold-Out Method
launch binder  ·  Watch
14. Hyperparameter Tuning
launch binder  ·  Watch
15. Bootstrap Evaluation
launch binder  ·  Watch
16. Ensemble Methods
launch binder  ·  Watch
17. Hunt's Algorithm
launch binder  ·  Watch
🟨 Probabilistic & Rule-Based Methods (18–26)  ·  🟡 Intermediate

Prerequisites: Topics 01–07 (core classifiers).

18. Impurity Measures
launch binder  ·  Watch
19. Rule-Based Classifier
launch binder  ·  Watch
20. Sequential Covering Algorithm
launch binder  ·  Watch
21. Bayesian Belief Networks
launch binder  ·  Watch
22. Artificial Neural Networks
launch binder  ·  Watch
23. Feed Forward Neural Networks
launch binder  ·  Watch
24. Support Vector Machine
launch binder  ·  Watch
25. Maximal Margin Classifier
launch binder  ·  Watch
26. Non-Linear SVM
launch binder  ·  Watch
🟧 Class Imbalance & Evaluation Curves (27–30)  ·  🟡 Intermediate

Prerequisites: Topics 01–07, 11 (cross-validation).

27. Class Imbalance Problem and Solutions
launch binder  ·  Watch 1  ·  Watch 2
28. SMOTE
launch binder  ·  Watch
29. ROC and AUC Curves
launch binder  ·  Watch
30. ISO Accuracy Lines
launch binder  ·  Watch
🟩 Clustering (31–46)  ·  🟡 Intermediate

Prerequisites: Topics 06 (PCA), 11 (cross-validation). No labelled data required.

31. Unsupervised Learning - Clustering
launch binder  ·  Watch 1  ·  Watch 2
32. K-means Clustering
launch binder  ·  Watch
33. Bisecting K-means
launch binder  ·  Watch
34. Cluster Similarity Measures
launch binder  ·  Watch
35. Fuzzy C-Means
launch binder  ·  Watch
36. DBSCAN Technique
launch binder  ·  Watch
37. Mean-Shift Clustering
launch binder  ·  Watch
38. Hierarchical Clustering
launch binder  ·  Watch
39. Linkage Measures
launch binder  ·  Watch
40. Cluster Validation Techniques
launch binder  ·  Watch
41. Cohesion and Separation in Cluster
launch binder  ·  Watch
42. Silhouette Coefficient
launch binder  ·  Watch
43. Cophenetic Correlation Coefficient
launch binder  ·  Watch
44. Hopkins Statistic
launch binder  ·  Watch
45. Cluster Purity
launch binder  ·  Watch
46. Rand Statistic and Jaccard Index
launch binder  ·  Watch
🟪 Active Learning (47–56)  ·  🔴 Advanced

Prerequisites: Topics 01–17, 27–30 (evaluation).

47. Active Learning in Machine Learning
launch binder  ·  Watch
48. Membership Query Synthesis
launch binder  ·  Watch
49. Stream-Based Selective Sampling
launch binder  ·  Watch
50. Pool-Based Sampling
launch binder  ·  Watch
51. Uncertainty Sampling
launch binder  ·  Watch
52. Query by Committee
launch binder  ·  Watch
53. Expected Model Change
launch binder  ·  Watch
54. Expected Error Reduction
launch binder  ·  Watch
55. Variance Reduction in Active Learning
launch binder  ·  Watch
56. Information Density in Active Learning
launch binder  ·  Watch
🔵 Multi-label & Multi-class Classification (57–64)  ·  🟡 Intermediate

Prerequisites: Topics 01–07, 11.

57. Multi-class Classification (OvR and OvO)
launch binder  ·  Watch
58. Multi-label Classification
launch binder  ·  Watch
59. Problem Transformation Methods
launch binder  ·  Watch
60. Binary Relevance
launch binder  ·  Watch
61. Label Powerset
launch binder  ·  Watch
62. Random K Labelsets (RAkEL)
launch binder  ·  Watch
63. Multi-label Evaluation Metrics
launch binder  ·  Watch
64. Multi-Target Classification
launch binder  ·  Watch
🟫 Pattern Mining & Statistical Theory (65–74)  ·  🟡 Intermediate

Prerequisites: Topics 07 (Naive Bayes), basic probability.

65. Laplace Correction
launch binder  ·  Watch
66. Association Rules
launch binder  ·  Watch
67. Apriori Principle
launch binder  ·  Watch
68. Item-set Lattice
launch binder  ·  Watch
69. Lift Measure
launch binder  ·  Watch
70. ECLAT
launch binder  ·  Watch
71. Family-Wise Error Rate (FWER)
launch binder  ·  Watch
72. False Discovery Rate (FDR)
launch binder  ·  Watch
73. Singular Value Decomposition (SVD)
launch binder  ·  Watch
74. Vapnik–Chervonenkis (VC) Dimension
launch binder  ·  Watch
⬛ Concept Learning, Algorithms & Regression (75–85)  ·  🟡 Intermediate

Prerequisites: Topics 01, 03 (Decision Trees), 11.

75. Concept Learning
launch binder  ·  Watch
76. Find-S Algorithm
launch binder  ·  Watch
77. Candidate Elimination Algorithm
launch binder  ·  Watch
78. Inductive Bias
launch binder  ·  Watch
79. ID3 Algorithm
launch binder  ·  Watch
80. Gradient Descent Algorithm
launch binder  ·  Watch
81. Ridge Regression
launch binder  ·  Watch
82. Lasso Regression
launch binder  ·  Watch
83. Polynomial Regression
launch binder  ·  Watch
84. Isotonic Regression
launch binder  ·  Watch
85. Elastic Net Regression
launch binder  ·  Watch
🔶 Dimensionality Reduction & Lazy Learning (86–90)  ·  🟡 Intermediate

Prerequisites: Topics 05 (KNN), 06 (PCA).

86. Linear Discriminant Analysis (LDA)
launch binder  ·  Watch
87. t-SNE
launch binder  ·  Watch
88. Lazy Learning Algorithms
launch binder  ·  Watch
89. Weighted K-NN
launch binder  ·  Watch
90. Case-Based Reasoning
launch binder  ·  Watch
🔴 Deep Learning (91–107)  ·  🔴 Advanced

Prerequisites: Topics 22–23 (Neural Networks), 80 (Gradient Descent). Familiarity with NumPy recommended.

91. Introduction to Deep Neural Networks
launch binder  ·  Watch
92. Structure of a Neuron
launch binder  ·  Watch
93. Weight Matrix in Neural Networks
launch binder  ·  Watch
94. Generalization of Neural Networks
launch binder  ·  Watch
95. Learning Neural Networks
launch binder  ·  Watch
96. Vectorization of Neural Networks
launch binder  ·  Watch
97. Decision Boundary of Neural Networks
launch binder  ·  Watch
98. The Chain Rule
launch binder  ·  Watch
99. Backpropagation Algorithm
launch binder  ·  Watch
100. The Delta Rule
launch binder  ·  Watch
101. Vanishing and Exploding Gradients
launch binder  ·  Watch
102. Step Activation Function
launch binder  ·  Watch
103. Sigmoid Activation Function
launch binder  ·  Watch
104. Hyperbolic Activation Function
launch binder  ·  Watch
105. ReLU Activation Function
launch binder  ·  Watch
106. Teacher Forcing in Deep Learning
launch binder  ·  Watch
107. LSTM
launch binder  ·  Watch
⚫ Advanced & Semi-Supervised Methods (108–113)  ·  🔴 Advanced

Prerequisites: Topics 01–30, 91–107 (Deep Learning basics).

108. Regression Evaluation Metrics
launch binder  ·  Watch
109. Linear Learning Machines (LLMs)
launch binder  ·  Watch
110. Kernel Function and Kernel Matrix
launch binder  ·  Watch
111. Semi-Supervised Learning (SSL)
launch binder  ·  Watch
112. Safe Semi-Supervised Learning (SSL)
launch binder  ·  Watch
113. Semi-Supervised SVM (S3VM & TSVM)
launch binder  ·  Watch
🎯 Advanced Activation Functions (114–114)  ·  🔴 Advanced

Prerequisites: Topics 91–107 (Deep Learning).

114. Softmax Activation Function
launch binder  ·  Watch
🏁 End-to-End Real-World Project (115)  ·  🟡 Intermediate

Prerequisites: Topics 01–30 recommended. This notebook deliberately revisits concepts from across the course.

A capstone notebook that applies the concepts from the entire course to a real dataset.
We predict Heart Disease using the UCI Cleveland dataset, walking through every stage a practitioner faces:

EDA → Preprocessing → PCA → SMOTE → Multi-model benchmarking → Hyperparameter tuning → ROC/AUC → Feature importance

Concept Topics revisited
Hold-out split & scaling 01, 13
PCA visualisation 06
SMOTE for class imbalance 28
5-fold cross-validation 11
GridSearchCV tuning 14
ROC-AUC evaluation 29
Classification report 63, 108
115. End-to-End Real-World ML Project
launch binder
📈 Advanced Time Series ML (116)  ·  🔴 Advanced

Prerequisites: Topics 01, 11, 14, and basic understanding of lag/rolling features.

A practical advanced notebook focused on modern ML workflows for forecasting:

TimeSeriesSplit → Lag/Rolling features → RF/HistGB/SVR → Multi-step recursive forecasting

Concept Topics revisited
Time-aware validation 11
Model tuning mindset 14
Feature engineering 01, 80
Forecast diagnostics 108
116. Advanced Time Series Analysis in ML
launch binder
117. Stream-Based & Adaptive Learning
launch binder
118. DenStream
launch binder
119. ADWIN
launch binder
120. VFDT & CVFDT
launch binder
121. Concept Drift Detection
launch binder
122. MONIC
launch binder
123. SHAP Values
launch binder
124. ARIMA & SARIMA
launch binder
125. CluStream
launch binder

Co-Author Setup

If you want to co-author with yatchmaster:

  1. Add yatchmaster as a collaborator in GitHub repository settings.
  2. Use feature branches and pull requests.
  3. Add co-author trailers in commit messages when both contribute:
Co-authored-by: yatchmaster <their-email@users.noreply.github.com>

See CONTRIBUTING.md for a full workflow.

🤝 Contributing

Contributions are welcome from subscribers and learners. Please read CONTRIBUTING.md before opening pull requests.

📄 License

This project is licensed under the MIT License.


Made with ❤️ for learners · Subscribe on YouTube

About

This Repo will provide you code for Machine Learning and AI from my Youtube channel tutorials

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages