Machine Learning Tutorial - Types of Machine Learning
๐ ML Ke Types
๐ 3 Main Types:
๐จโ๐ซ Supervised = Teacher ke saath (with answers)
๐งฉ Unsupervised = Khud discover karo (no answers)
๐ฎ Reinforcement = Trial & error (rewards)
1. Supervised Learning
Analogy: Textbook problems - Answer sheet hai
Examples:
- ๐ง Spam vs Not Spam (labeled emails)
- ๐ House Price Prediction (past prices given)
- ๐ฉบ Disease Diagnosis (patient history + results)
2. Unsupervised Learning
Analogy: Library books khud organize karo
Examples:
- ๐ฅ Customer Segmentation (groups banao)
- ๐ฐ News Clustering (similar articles group)
- ๐ Market Basket Analysis (items together)
3. Reinforcement Learning
Analogy: Video game - try, fail, learn, improve
Examples:
- ๐ฎ Game AI (AlphaGo, Chess)
- ๐ Self-Driving Cars
- ๐ฆพ Robot Control
Example
# Supervised
X = [[1], [2], [3]] # Input
y = [2, 4, 6] # Output (labels)