sdl unit 1
sdl unit 1
Here’s an in-depth explanation of each topic you mentioned, with detailed insights and
examples to help you thoroughly prepare for your end-semester exams. Each section has
been expanded to cover key concepts, formulas, diagrams (descriptive), and applications.
ML is a branch of artificial intelligence (AI) that focuses on building systems that can
automatically learn and improve from experience.
Instead of being explicitly programmed for every task, ML models identify patterns in
data and make decisions or predictions.
Characteristics of ML:
3. Generalization: The ability to perform well on unseen data (not just training data).
1. Prediction: Forecasting future trends based on historical data (e.g., stock prices).
2. Classification: Categorizing data into predefined labels (e.g., email spam detection).
2. Data Preprocessing: Clean and prepare the data (handle missing values, scaling, etc.).
1/7
Applications of ML:
Autonomous Vehicles: Self-driving cars use ML for object detection and decision-
making.
a) Supervised Learning:
Definition: The model is trained on a labeled dataset, where both inputs (features) and
corresponding outputs (labels) are provided.
Key Algorithms:
Examples:
b) Unsupervised Learning:
Definition: The model is trained on an unlabeled dataset and is tasked with finding
hidden patterns or structures in the data.
Key Algorithms:
Examples:
2/7
Segmenting customers based on purchase behavior.
c) Reinforcement Learning:
Definition: The model learns by interacting with an environment and receiving rewards
or penalties based on its actions.
Key Concepts:
Examples:
A learning paradigm where the model learns a mapping function from input features (X
) to output labels (Y ).
Key Steps:
1. Dataset Preparation:
2. Training:
3/7
The model uses labeled data to identify relationships between X and Y .
3. Testing:
Examples:
Regression
Types of Regression:
1. Linear Regression:
Equation: y = β0 + β1 x + ϵ .
2. Polynomial Regression:
Applications:
Forecasting sales.
Classification
Types of Classification:
4/7
1. Binary Classification:
2. Multi-Class Classification:
More than two classes (e.g., classifying images into cats, dogs, and birds).
Applications:
Sentiment analysis.
5. Linear Regression
Key Concepts:
Model Assumptions:
Evaluation Metrics:
6. Logistic Regression
5/7
Why Logistic Regression?
Used when the dependent variable is categorical (e.g., binary outcomes like "Yes/No").
Key Formula:
Sigmoid Function:
1
P (y = 1∣x) =
1 + e−(β0 +β1 x)
Decision Boundary:
Applications:
For Regression:
3. R-Squared (R2 ):
For Classification:
1. Accuracy:
6/7
Ratio of correct predictions.
TP +TN
Accuracy = TP +TN +FP +FN
.
2. Precision:
3. Recall (Sensitivity):
4. F1-Score:
5. ROC-AUC:
Preparation Tips:
Understand the Theory: Ensure you grasp the concepts and can explain them in your
own words.
Learn Assumptions: For regression and logistic regression, focus on the model's
assumptions and why they matter.
Summarize: Create a one-page cheat sheet for formulas and key points.
7/7