Skip to main content
MahiDev — Learn. Build. Become AI-ready.

Module 01

Machine Learning

Intermediate76 lessons

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.

Intermediate12 min

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.

Beginner28 min

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.

Beginner18 min

04

Regularization

Nine beginner steps: why large weights overfit, Ridge and Lasso formulas, a marks example, and a mind map before the quiz.

Beginner20 min

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.

Beginner20 min

06

Naive Bayes

Nine beginner steps on one spam email: prior, likelihood, a posterior of 0.83, three Naive Bayes types, and Laplace smoothing.

Beginner20 min

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.

Beginner22 min

08

Dimensionality Reduction

Nine beginner steps on six students: study and practice hours share one line that keeps about 94 percent of their spread.

Beginner22 min

09

Feature Engineering

Nine beginner steps on five students: same study hours, different marks, and a pandas column for hours times attendance.

Beginner22 min

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.

Beginner20 min

11

Learning Curves

Nine beginner steps on eight students: train miss, validation miss, and how that gap shows whether more new data will help.

Beginner24 min

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.

Beginner22 min

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.

Beginner24 min

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.

Beginner22 min

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.

Beginner22 min

16

Supervised Learning

After the theory lessons, open one page for each supervised algorithm, grouped into regression and classification models.

Intermediate15 min

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.

Beginner60 min

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.

Intermediate90 min

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.

Intermediate40 min

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.

Intermediate40 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

26

XGBoost Regressor

Boost a numeric model with second-order steps and regularization, so each tree moves the prediction by a controlled amount.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

36

CatBoost

Boost trees on tables that include categories, encoding each category from earlier rows so the current label does not leak.

Intermediate12 min

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.

Intermediate12 min

38

Unsupervised Learning

After supervised algorithms, open one page for each unsupervised method: clusters, reduction, rules, and anomaly detection.

Intermediate15 min

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.

Intermediate12 min

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.

Intermediate12 min

41

DBSCAN

Find dense neighborhoods and mark isolated points as noise, without choosing the number of clusters first. One example is on this page.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

47

UMAP

Build a neighbor graph and lay it out in fewer dimensions so local neighborhoods stay intact. One example is on this page.

Intermediate12 min

48

Independent Component Analysis

Unmix combined signals into sources that are statistically independent, not just uncorrelated. One example is on this page.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

51

FP-Growth

Compress transactions into a frequency tree and read co-occurrence from that tree instead of listing every candidate pair.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

55

Reinforcement Learning

Choose a reinforcement-learning algorithm for an agent that learns from rewards, from Q-learning through multi-agent methods.

Intermediate15 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

69

DDPG

Learn a deterministic action for continuous control, and score that action with a critic. This page has one worked example.

Intermediate12 min

70

TD3

Stabilize DDPG with two critics, a delayed actor, and noise on the target action. This lesson includes one worked example.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min

74

MuZero

Plan with a learned model that predicts reward, value, and policy, without predicting the raw observation. One example is on this page.

Intermediate12 min

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.

Intermediate12 min

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.

Intermediate12 min