Module 01
Machine Learning
01
What Is Machine Learning — Three Types and Theory First
Understand what machine learning is, how the three types differ, and which theory lessons to finish before any algorithm.
02
Bias and Variance — Beginner Guide to Underfitting & Overfitting
Learn bias, variance, underfitting, overfitting, and generalization step by step—starting with ML models, prediction error, and study-hours examples.
03
Gradient Descent
Linear regression on study hours and marks: a wrong prediction first, then one numeric update of the weight m and the intercept c.
04
Regularization
Nine beginner steps: why large weights overfit, Ridge and Lasso formulas, a marks example, and a mind map before the quiz.
05
Support Vector Machines
Nine beginner steps: the widest street between pass and fail, support vectors, the margin formula, and a kernel when a line cannot split the classes.
06
Naive Bayes
Nine beginner steps on one spam email: prior, likelihood, a posterior of 0.83, three Naive Bayes types, and Laplace smoothing.
07
Gradient Boosting
Nine beginner steps on three house prices: start at 60, residuals of -10, 0 and +10, then a small learning-rate correction.
08
Dimensionality Reduction
Nine beginner steps on six students: study and practice hours share one line that keeps about 94 percent of their spread.
09
Feature Engineering
Nine beginner steps on five students: same study hours, different marks, and a pandas column for hours times attendance.
10
Imbalanced Data
Nine beginner steps on one exam of 100 papers: 90 pass and 10 fail, and why 90 percent accuracy can still miss every fail.
11
Learning Curves
Nine beginner steps on eight students: train miss, validation miss, and how that gap shows whether more new data will help.
12
Ensemble Methods
Nine beginner steps on one held-out mark of 60: bag guesses of 50, 75 and 55, and why their average can beat each single guess.
13
Model Selection
Nine beginner steps on four students: a mark on a line, a pass or fail gap, or no label, and which model each shape asks for.
14
ML Workflow
Nine beginner steps on four students: hold C out of the fit, the average misses 100 by 40, and the line still hits the mark.
15
Model Monitoring
Nine beginner steps on one live line: week 1 still hits 70, week 2 hours jump to 14, and week 3 the same 5 hours scores 50.
16
Supervised Learning
After the theory lessons, open one page for each supervised algorithm, grouped into regression and classification models.
17
Linear Regression
Learn linear regression step by step: the least-squares proof in plain words, the sklearn workflow, error metrics, and under/overfitting with live labs.
18
Polynomial Regression: Fit Curves with Python
Follow a Hyderabad house-price story to learn polynomial regression: degrees, the maths, a runnable Python notebook, overfitting and metrics.
19
Ridge Regression: Calm a Curve with Python
Calm Ananya's degree-6 Hyderabad house curve with ridge: scale the powers, pick alpha, and see when a penalty helps or underfits.
20
Lasso Regression: Drop a Power with Python
Use lasso to drop extra powers on Ananya's Hyderabad house curve. The L1 penalty can set a weak scaled weight to exactly zero.
21
Elastic Net
Combine the Ridge and Lasso penalties so related inputs can stay in the model while weak ones still drop. One example is on this page.
22
Support Vector Regression
Fit a numeric target while ignoring errors inside a margin, using the same kernel idea as a support vector machine. One example is on this page.
23
Decision Tree Regressor
Predict a number by splitting inputs into leaves, where each leaf returns the average target of its rows. One example is on this page.
24
Random Forest Regressor
Average many decision trees trained on different row and feature samples so one noisy tree cannot dominate. One example is on this page.
25
Gradient Boosting Regressor
Add small trees that predict the remaining error, so each new tree corrects the numeric forecast. One example is on this page.
26
XGBoost Regressor
Boost a numeric model with second-order steps and regularization, so each tree moves the prediction by a controlled amount.
27
Logistic Regression
Turn a weighted sum of inputs into a probability for a class, then pick the class when that probability crosses a threshold.
28
K-Nearest Neighbors
Classify a new point by the majority label among the closest training rows, with no learned equation. One example is on this page.
29
Naive Bayes Classifier
Score each class by how likely the inputs are under that class, assuming the inputs contribute separately. One example is on this page.
30
Support Vector Machine
Draw the class boundary with the widest margin, and let a kernel bend that boundary when a straight cut is not enough. One example is on this page.
31
Decision Tree Classifier
Classify a row by a sequence of yes or no splits, and let each leaf vote with its majority class. One example is on this page.
32
Random Forest Classifier
Let many trees vote on the class so the label does not depend on one unlucky split. This lesson includes one worked example.
33
Gradient Boosting Classifier
Add shallow trees that reduce the classification loss, each one trained on the errors left by the trees before it. One example is on this page.
34
XGBoost Classifier
Boost a classifier with curvature-aware leaf weights and regularization, so each added tree is a controlled correction. One example is on this page.
35
LightGBM
Grow boosted trees leaf by leaf, expanding the leaf with the largest error first, which trains faster on wide tables. One example is on this page.
36
CatBoost
Boost trees on tables that include categories, encoding each category from earlier rows so the current label does not leak.
37
Artificial Neural Network
Stack weighted layers and nonlinearities so a classifier can learn a boundary that is not a single straight cut. One example is on this page.
38
Unsupervised Learning
After supervised algorithms, open one page for each unsupervised method: clusters, reduction, rules, and anomaly detection.
39
K-Means Clustering
Group unlabelled points into k clusters by assigning each point to the nearest center and moving the centers. One example is on this page.
40
Hierarchical Clustering
Merge the closest points into clusters step by step, and cut the tree when you want a set of groups. One example is on this page.
41
DBSCAN
Find dense neighborhoods and mark isolated points as noise, without choosing the number of clusters first. One example is on this page.
42
Gaussian Mixture Model
Describe clusters as overlapping bell curves and assign each point a probability for every cluster. One example is on this page.
43
Mean Shift
Slide each point toward the densest nearby region until points that share a peak form a cluster. One example is on this page.
44
Spectral Clustering
Connect nearby points into a graph and cut that graph so tightly linked points stay in the same cluster. One example is on this page.
45
Principal Component Analysis
Rotate a table onto the few directions that keep the most spread, and drop the quiet directions. One example is on this page.
46
t-SNE
Place similar rows close together on a 2D map so clusters in a high-dimensional table become visible. One example is on this page.
47
UMAP
Build a neighbor graph and lay it out in fewer dimensions so local neighborhoods stay intact. One example is on this page.
48
Independent Component Analysis
Unmix combined signals into sources that are statistically independent, not just uncorrelated. One example is on this page.
49
Autoencoders
Train a network to compress a row and rebuild it, so the narrow middle layer keeps what reconstruction needs. One example is on this page.
50
Apriori
Find itemsets that appear together often enough, using the fact that a rare pair cannot hide inside a frequent one. One example is on this page.
51
FP-Growth
Compress transactions into a frequency tree and read co-occurrence from that tree instead of listing every candidate pair.
52
Isolation Forest
Spot anomalies by how quickly random splits separate a point, because odd points are isolated in few cuts. One example is on this page.
53
One-Class SVM
Learn a boundary around the normal rows and treat anything outside that boundary as an anomaly. One example is on this page.
54
Local Outlier Factor
Compare a point's density with the density of its neighbors, and flag points that sit in a much thinner region. One example is on this page.
55
Reinforcement Learning
Choose a reinforcement-learning algorithm for an agent that learns from rewards, from Q-learning through multi-agent methods.
56
Q-Learning
Learn the value of each action from rewards, using the best next action even if the agent did not take it. One example is on this page.
57
SARSA
Update an action value from the reward and from the next action the same policy actually takes. One example is on this page.
58
Expected SARSA
Replace SARSA's single next action with the average value of every next action under the policy. One example is on this page.
59
Deep Q-Network
Replace the Q-table with a neural network so the agent can score actions from raw, high-dimensional states. One example is on this page.
60
Double DQN
Choose the next action with the online network and score it with the target network, so the max does not inflate Q. One example is on this page.
61
Dueling DQN
Split the Q-network into a state value and action advantages, then recombine them into action scores. One example is on this page.
62
Policy Gradient
Increase the probability of actions that led to higher return, and decrease the ones that led to less. One example is on this page.
63
REINFORCE
Wait until the end of an episode, then scale each action's log probability by the full return from that step. One example is on this page.
64
Actor-Critic
Let an actor choose actions and a critic score them, and train the actor on the critic's error instead of the raw return.
65
A2C
Train an actor on the advantage, the gap between the return and a learned value, and average several workers in sync. One example is on this page.
66
A3C
Run several actors at once and push their advantage updates to a shared model without waiting for a barrier. One example is on this page.
67
Proximal Policy Optimization
Update a policy in small, clipped steps so a new policy cannot move far from the one that collected the data. One example is on this page.
68
Trust Region Policy Optimization
Constrain a policy update so the new policy stays inside a small KL divergence of the old one. One example is on this page.
69
DDPG
Learn a deterministic action for continuous control, and score that action with a critic. This page has one worked example.
70
TD3
Stabilize DDPG with two critics, a delayed actor, and noise on the target action. This lesson includes one worked example.
71
Soft Actor-Critic
Maximize both return and action entropy, so a continuous policy keeps several good actions alive. One example is on this page.
72
Dyna-Q
Learn a small model of the environment and replay imagined transitions so one real step teaches several updates. One example is on this page.
73
Monte Carlo Tree Search
Search ahead by selecting, expanding, simulating, and backing up values, guided by an exploration bonus. One example is on this page.
74
MuZero
Plan with a learned model that predicts reward, value, and policy, without predicting the raw observation. One example is on this page.
75
MADDPG
Train each agent with a critic that sees every agent's action, then act using only local information. One example is on this page.
76
QMIX
Mix per-agent Q values into one team value with a network that stays increasing in each agent's Q. One example is on this page.