

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















In one sentence: Machine Learning takes a dataset, learns useful patterns and relationships through computation, and uses the learned knowledge to make a decision or prediction for new data.
The simple answer is: Use traditional Machine Learning when the data is relatively structured and the problem can be solved well with engineered features. Use Deep Learning when you have large amounts of complex data and need the model to learn features automatically.
Traditional ML algorithms include:
Credit Score < 600 ā
Traditional ML would generally require manually designed image features. Deep Learning can learn useful visual representations automatically from training data.
3. Feature extraction is difficult This is a major advantage of Deep Learning. Traditional ML: Raw Data ā Feature Engineering ā ML Algorithm ā Prediction A human often needs to decide which features are useful. Deep Learning: Raw Data ā Deep Neural Network ā Automatically learns representations ā Prediction For example, in image recognition, the network can learn increasingly complex representations through its layers.
Problem 1: Student Pass/Fail Data:
Use Machine Learning. For example: Random Forest ā Pass/Fail Problem 2: Face Recognition Input: Face Image The system needs to understand:
Since you are working with traffic-management examples, this is a very useful distinction. Situation A: Traffic Prediction Suppose your dataset contains: Time Vehicle Count Speed Weather Traffic 8 AM 850 25 km/h Clear High 10 AM 400 45 km/h Clear Low You want to predict:
Remember this: Structured Data ā Machine Learning Example: Age + Salary + Experience ā Loan Prediction Complex/Unstructured Data ā Deep Learning Example: Image ā Deep Learning ā Cat/Dog But there is an important exception: Deep Learning can also work with structured/tabular data , and traditional ML can work with text or image data after feature extraction. So don't memorize: "ML = tables and DL = images" as an absolute rule. Instead remember: Choose the simplest method that gives good performance for your data, problem, resources, and requirements. One-line classroom explanation: Machine Learning is often preferred for smaller, structured datasets and problems where useful features can be engineered easily, while Deep Learning is especially useful for large-scale, complex data such as images, video, audio, and natural language where automatic feature learning is valuable. WHAT IS MEAN BY MODAL
In Machine Learning, a model is the learned representation of patterns and relationships from data that can be used to make predictions or decisions. Simple Example: Student Pass/Fail
Suppose we give the ML algorithm this training data: Study Hours Attendance Result 2 60% Fail 3 65% Fail 5 80% Pass 6 85% Pass The Machine Learning algorithm studies this data and learns the relationship between: Study Hours + Attendance ā Result After learning, it creates a model. Then we give new data: Study Hours = 5 Attendance = 82% The model uses what it learned and predicts: PASS Very Simple Definition A Machine Learning model is the result of training an algorithm on data, which allows it to make predictions or decisions on new data. Think of it like a student: Training Data ā Student studies examples Learning Algorithm ā Student learns patterns Model ā Student's learned knowledge New Data ā New exam question Prediction ā Student gives the answer So: Data ā Algorithm learns ā Model ā New Data ā Prediction
Definition Supervised Learning is a type of machine learning in which the model is trained using labeled data. Here, we already know the correct answer/output for the training examples. Simple idea: Input + Correct Output ā Learning ā Model Example: Student Pass/Fail Study Hours Attendance Result 2 60% Fail 3 65% Fail 5 80% Pass 6 85% Pass Here:
Pass Common Supervised Learning Algorithms For Classification:
Definition Unsupervised Learning is a type of machine learning in which the model is trained using unlabeled data. Here, we do not provide the correct answer to the model. The algorithm tries to discover:
Definition Semi-Supervised Learning uses a combination of a small amount of labeled data and a large amount of unlabeled data. This is useful when obtaining labels is expensive, difficult, or timeconsuming. Simple idea: Small Labeled Dataset + Large Unlabeled Dataset ā Learning ā Model
Suppose a hospital has: 10,000 X-ray images But doctors have manually labeled only: 500 images For example: X-ray Label Image 1 Pneumonia Image 2 Normal Image 3 Pneumonia
... ... Image 500 Normal The remaining 9,500 images are unlabeled. A semi-supervised learning method can use: 500 labeled images + 9,500 unlabeled images to build a model. Why is this useful? Labeling medical images requires expert doctors and can take significant time and effort. So instead of labeling all 10,000 images, we can use a smaller labeled dataset together with the large unlabeled dataset.
Feature Supervised Unsupervised Semi-Supervised Labeled data Required Not required Small amount Unlabeled data Usually not necessary Used Large amount Correct output provided? Yes No For some data Main purpose Prediction Find patterns Prediction using limited labels Example Spam detection Customer grouping Medical image classification Common technique Classification/Regression Clustering Semi-supervised classification
Imagine you have 100 pictures of fruits. Supervised Learning
"Here is the question and here is the correct answer. Learn from it." Unsupervised No teacher, find the pattern yourself. "Here is the data. Find groups or patterns." Semi-Supervised Teacher gives only some answers. "I will label a few examples; use those along with the many unlabeled examples." One-line summary: Supervised Learning learns from labeled data, Unsupervised Learning discovers patterns from unlabeled data, and Semi-Supervised Learning combines a small amount of labeled data with a large amount of unlabeled data. HOW SEMISUPERVISED LEARNING EXACTLY WORKS WHICH ALGORITHMS ARE USED
Semi-supervised learning (SSL) is used when we have:
Suppose we have 10,000 medical X-ray images. Only 1,000 images are labeled by doctors: X-ray Label
Image 1 Pneumonia Image 2 Normal Image 3 Pneumonia ... ... X-ray Label Image 1000 Normal The remaining 9,000 images have no labels. So: 1,000 labeled + 9,000 unlabeled This is an ideal situation for semi-supervised learning.
A common SSL process looks like this: DATA ā āāāāāāāāāā“āāāāāāāāāā ā ā Labeled Data Unlabeled Data ā ā Known Answers Unknown Answers ā ā āāāāāāāāāā¬āāāāāāāāāā ā Semi-Supervised Method ā Learned Model ā Prediction / Decision Let's understand the process more deeply.
This is one of the most common ideas in semi-supervised learning. If the model is highly confident about an unlabeled example, we can temporarily treat its prediction as a pseudo-label. For example: Image 1001 ā Pneumonia ā 98% confidence We can assign: Pseudo-label = Pneumonia Similarly: Image 1002 ā Normal ā 96% confidence But: Image 1003 ā Pneumonia ā 52% confidence We may not use it yet , because the model is uncertain.
Now we have: Original labeled data 1,000 labeled images Pseudo-labeled data Suppose we obtained 6,000 reliable pseudo-labels. Now we effectively have: 1,000 real labels + 6,000 pseudo-labels The model can be trained again using this larger dataset.
After retraining: Model ā Better predictions The improved model can then predict labels for more unlabeled data. This process may be repeated. Labeled Data ā Initial Model ā Predict Unlabeled Data ā Select High-Confidence Predictions ā Generate Pseudo-Labels ā Combine Data ā Retrain Model ā Improved Model This approach is called Pseudo-Labeling / Self-Training.
There is no single algorithm called "Semi-Supervised Learning." Instead, semi-supervised learning is a learning setting/approach , and several algorithms can be used. Important methods include:
1. Self-Training / Pseudo-Labeling This is one of the easiest to understand. Process: Labeled Data