Machine Learning (ML) is a branch of AI in which computers learn patterns from data and use those patterns to make predictions or decisions without being explicitly programmed for every situation.
Traditional programming generally looks like:
Rules + Data
↓
Program
↓
Output
Machine learning works more like:
Data + Examples
↓
ML Algorithm
↓
Learned Model
↓
Prediction / Decision
For example, suppose you want to identify spam emails.
Instead of writing thousands of rules such as:
If the email contains “free money,” classify it as spam.
You can give an ML system many examples:
10,000 spam emails
10,000 normal emails
↓
ML algorithm
↓
Learn patterns
↓
Classify new emails
ML = AI that learns patterns from data.





