ML Types & Concepts - tech9tel/ai GitHub Wiki
๐ง ML Types & Concepts
Machine Learning (ML) can be categorized into different types based on how the model learns from data. Each type serves a unique purpose in solving real-world problems.
โ Supervised Learning
๐ Definition: The model learns from a labeled dataset (input โ output).
๐ฏ Goal: Predict outputs for new, unseen inputs.
๐งช Examples:
- Spam detection in emails
- Predicting house prices
- Diagnosing diseases from medical records
๐ Popular Algorithms:
- Linear Regression
- Decision Trees
- Support Vector Machines (SVM)
- k-Nearest Neighbors (k-NN)
๐ Unsupervised Learning
๐ Definition: The model finds patterns or structure in unlabeled data.
๐ฏ Goal: Group or reduce data without prior labeling.
๐งช Examples:
- Customer segmentation
- Market basket analysis
- Topic modeling from articles
๐ Popular Algorithms:
- K-Means Clustering
- Hierarchical Clustering
- Principal Component Analysis (PCA)
- DBSCAN
๐ Reinforcement Learning (RL)
๐ Definition: The model learns by trial and error using rewards and penalties.
๐ฏ Goal: Maximize cumulative reward through interactions with an environment.
๐งช Examples:
- Game playing (e.g., Chess, Go, Atari)
- Robotics control
- Autonomous driving
๐ Popular Algorithms:
- Q-Learning
- Deep Q-Networks (DQN)
- Policy Gradient Methods
๐ถ Think of it like training a pet โ give a treat for the right action!
๐คน Self-Supervised & Semi-Supervised Learning
๐ Definition:
- Self-Supervised Learning: Leverages unlabeled data by generating labels from the data itself.
- Semi-Supervised Learning: Combines a small amount of labeled data with a large amount of unlabeled data.
๐ฏ Goal: Reduce the need for expensive manual labeling.
๐งช Examples:
- Pretraining language models like BERT
- Image recognition with limited labeled samples
๐ Summary Table
Type | Data Used | Goal | Example Use Case |
---|---|---|---|
Supervised Learning | Labeled Data | Predict outcomes | Email spam classification |
Unsupervised Learning | Unlabeled Data | Find patterns or structure | Customer segmentation |
Reinforcement Learning | Reward Signals | Maximize long-term rewards | Game playing agents |
Self/Semi-Supervised Learning | Minimal Labels | Learn from limited data | NLP pretraining (BERT, GPT) |
๐ These types form the backbone of ML โ choosing the right one depends on the problem, data, and desired outcome.