Supervised Learning A Guide
Supervised Learning A Guide
Learning: A Guide
Supervised learning is a type of machine learning where algorithms
are trained on labeled data. This means the input data is tagged
with the correct output, allowing the algorithm to learn the
relationship between inputs and outputs.
IH
by Ihtisham Hazarika
Linear Regression
1 Predicting 2 Linear Equation
Continuous
The algorithm fits a linear
Outcomes
equation to observed
Linear regression is used data, modeling the
for predicting continuous relationship between a
outcomes, such as house dependent variable and
prices or stock prices. one or more independent
variables.
3 Example
For example, it can predict the price of a house based on its
size, location, and other features.
Logistic Regression
Binary Classification Logistic Function Applications
Logistic regression is used for It uses a logistic function to Examples include predicting
binary classification tasks. The goal estimate probabilities, whether a customer will click on an
is to predict the probability of an transforming the linear equation ad or whether an email is spam.
outcome, such as yes/no or into a probability range between 0
true/false. and 1.
Decision Trees
Decision Rules
Decision trees learn decision rules from the data
features to predict the value of a target variable.
Branching Structure
They have a tree-like structure with branches
representing different decision points.
Easy to Understand
Decision trees are relatively easy to understand and
interpret, making them a popular choice for many
applications.
Random Forests
Ensemble Learning Random Forests create an
ensemble of multiple
decision trees, each trained
on a random subset of the
data.
Accuracy This helps to improve model
accuracy and control
overfitting.
Support Vectors
The algorithm focuses on the support vectors, which are the
data points closest to the decision boundary, influencing the
model's predictions.
Neural Networks
1 Complex Relationships
Neural networks are powerful models that can
capture complex, non-linear relationships in data.
2 Deep Learning
They are widely used in deep learning applications,
such as image recognition and natural language
processing.
3 Layers
Consist of multiple layers of interconnected nodes,
each performing a specific operation.
Applications of Supervised
Learning
Medical Diagnosis
Predicting diseases based on patient data.
Fraud Detection
Identifying fraudulent transactions in real-time.
Customer Segmentation
Grouping customers into different segments based on their behavior and
preferences.