SlideShare a Scribd company logo
Introduction to Machine Learning
15 Slides
Definition
• The art of making machines intelligent without explicit programming
Machine Learning is a field which consists of learning algorithms or
techniques which
• Execute some tasks T (Regression/Classification)
• Improve their performance P (model performance)
• With experience E (Delta)
Algorithms that can learn from observational data, and can make
predictions based on it.
3 Stages of ML process
• Representation (Selection of an algorithm/parameters)
• Evaluation (Objective function)
• Optimization (finding the optimal parameters)
Types of Machine Learning
Supervised Machine Learning
• Training is done using labelled data
• Algorithm learns the mapping function from the input to the output. Y =
f(X)
• Examples:
• Regression – used to predict continuous values
• Classification – used to predict categorical values
• In supervised learning, the algorithm learns from “correct” answers.
• The model is created and then used to predict answers from future data
• Example: Train a model to predict car price based on car attributes using
historical sales data. The model can predict optimal price for the new car
that haven’t been sold before.
Movie
Genres
Types of Machine Learning
Unsupervised Machine Learning
• Training is done using unlabeled data
• Algorithms are left to their own devices to discover and present the
interesting structure in the data.
• Clustering – used to discover the inherent groupings in the data
• Association – used to discover rules that describe large portions of the
data
• Example: group (cluster) of objects into 2 different sets based on
characteristics of those objects.
Dating
Sites
Evaluating Supervised Learning
• If you have a set of training data that includes the value you are
trying to predict; you don’t have to guess if the resulting model
is good or bad.
• If you have enough training data, you can split into two parts: a
training set and a test set.
• Then you train the model using training
set. Then measure the model’s accuracy
by asking it to predict values for the
test set, and compare that to the
unknown, true values.
Supervised ML - Regression
Regression is a technique that determines the relationship between one or
more independent variables and a dependent variable
Other naming style
Dependent : Independent
Target : Input
Criterion : Predictor
Linear Regression
• Simple Linear Regression : Only one independent variable
• Multiple Linear Regression : Two or more independent variables
Non-Linear Regression
• Dependent or non-linear transformation of independent variables
Supervised ML - Regression
Simple Linear Regression
In a Simple Linear Regression, we fit the best line between
the dependent variable and the independent variable given
as y = mx + c
m = Co-efficient of x (i.e. change in y divided by change in x)
c = Intercept (represents the variability in y)
• Fit a line to a dataset of observations
• Use this line to predict unobserved values
Real life scenarios will definitely have many more independent variables than
just one. To model an equation that studies the relationship between the
dependent variable and multiple independent variables.
The representation equation can be extended to
Y = m0 + m1x1 + m2x2 + m3x3 + … + mnxn
Where,
m0 is the intercept
m1 is the coefficient of variable x1
M2 is the coefficient of variable x2
And so on…
Multiple Linear Regression
Logistic Regression is a technique that determines the relationship between a
dependent variable and one or more independent variables, with the type of
dependent being a dichotomous categorical variable.
To maximize or minimize a function, we differentiate the function and find the point
when the gradient is zero.
Since, this is a non-linear function, we use the gradient descent i.e. calculate the
gradient of the function at each i.e. update the values of parameters
Supervised ML - Classification
The key objective in clustering is to identify distinct groups/clusters based on
similarities within a given dataset.
Agglomerative (Hierarchical)
Divisive (K-Means)
K-Means Clustering
• Start with random point initialization of the required number of centers. (“K”in K-
means stands for the number of clusters)
• Assign each data point to the “center“ closest to it. (Distance metric = Normal
Euclidean distance)
• Recalculate centers by averaging the dimensions of the points belonging to each
cluster.
• Repeat with new centers until we reach a point where the assignments become
stable.
Unsupervised ML - Classification
K-Means Clustering
• Start with random point initialization of the required number of centers.
(“K”in K-means stands for the number of clusters)
• Assign each data point to the “center“ closest to it. (Distance metric =
Normal Euclidean distance)
• Recalculate centers by averaging the dimensions of the points belonging
to each cluster.
• Repeat with new centers until we reach a point where the assignments
become stable.
Hierarchical Clustering
• Start with “n”clusters (n= # of data points)
• Combine the 2 closest clusters
• Repeat till only 1 cluster exists.
Unsupervised ML - Classification
Evaluating ML models for Regression
Evaluating ML models for Regression
Thank you

More Related Content

PPTX
Supervised learning
PPTX
Supervised learning and Unsupervised learning
PPTX
Supervised Machine Learning Techniques
PDF
Supervised Machine Learning Techniques common algorithms and its application
PPT
Machine Learning
PDF
Supervised learning
PPTX
Supervised Machine Learning
PPTX
Slide 1
Supervised learning
Supervised learning and Unsupervised learning
Supervised Machine Learning Techniques
Supervised Machine Learning Techniques common algorithms and its application
Machine Learning
Supervised learning
Supervised Machine Learning
Slide 1

What's hot (20)

PPT
Conceptual modeling
PDF
Machine learning basics
PPTX
Adapting neural networks for the estimation of treatment effects
PPTX
Machine learning
PPTX
Types of Mathematical Model.
PPTX
Classification and Regression
PPTX
Housing price prediction
PDF
Machine Learning - Deep Learning
PDF
What makes a good decision tree?
PDF
Introduction to machine learning
PDF
Supervised Machine Learning With Types And Techniques
PDF
Ew36913917
PDF
How to understand and implement regression analysis
PPTX
Statistical Learning on Credit Data
PPTX
House Price Prediction An AI Approach.
PDF
Selecting the Right Type of Algorithm for Various Applications - Phdassistance
PPT
Codecamp Iasi 7 mai 2011 Monte Carlo Simulation
PPTX
Selecting the Right Type of Algorithm for Various Applications - Phdassistance
PPTX
Data analytics with python introductory
ODP
Linear Regression Ex
Conceptual modeling
Machine learning basics
Adapting neural networks for the estimation of treatment effects
Machine learning
Types of Mathematical Model.
Classification and Regression
Housing price prediction
Machine Learning - Deep Learning
What makes a good decision tree?
Introduction to machine learning
Supervised Machine Learning With Types And Techniques
Ew36913917
How to understand and implement regression analysis
Statistical Learning on Credit Data
House Price Prediction An AI Approach.
Selecting the Right Type of Algorithm for Various Applications - Phdassistance
Codecamp Iasi 7 mai 2011 Monte Carlo Simulation
Selecting the Right Type of Algorithm for Various Applications - Phdassistance
Data analytics with python introductory
Linear Regression Ex
Ad

Similar to Introduction to Machine Learning (20)

PPTX
ML Unjkfmvjmnb ,mit-2 - Rejhjmfnvhjmnv gression.pptx
PDF
Lecture 2 - Introduction to Machine Learning, a lecture in subject module Sta...
PPTX
Supervised Machine Learning
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PDF
Machine Learning deep learning artificial
PPTX
Difference between Supervised and Unsupervised Machine Learning.pptx
PDF
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
PPTX
Unit 3 – AIML.pptx
PDF
Introduction to machine learning
PPTX
Supervised and Unsupervised Learning.pptx
PPTX
Introduction to machine learning and model building using linear regression
PPTX
Ml ppt at
PPTX
Mastering Machine Learning Algorith.pptx
PPT
Machine learning and deep learning guide.ppt
PPTX
Predire il futuro con Machine Learning & Big Data
PDF
Basic course for computer based methods
PPTX
Ml workshop
PPTX
ML Lec 1 (1).pptx
PPTX
Basic course on computer-based methods
PPTX
UNIT II SUPERVISED LEARNING - Introduction
ML Unjkfmvjmnb ,mit-2 - Rejhjmfnvhjmnv gression.pptx
Lecture 2 - Introduction to Machine Learning, a lecture in subject module Sta...
Supervised Machine Learning
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
Machine Learning deep learning artificial
Difference between Supervised and Unsupervised Machine Learning.pptx
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Unit 3 – AIML.pptx
Introduction to machine learning
Supervised and Unsupervised Learning.pptx
Introduction to machine learning and model building using linear regression
Ml ppt at
Mastering Machine Learning Algorith.pptx
Machine learning and deep learning guide.ppt
Predire il futuro con Machine Learning & Big Data
Basic course for computer based methods
Ml workshop
ML Lec 1 (1).pptx
Basic course on computer-based methods
UNIT II SUPERVISED LEARNING - Introduction
Ad

Recently uploaded (20)

PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PDF
. Radiology Case Scenariosssssssssssssss
PDF
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PPTX
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
PPT
protein biochemistry.ppt for university classes
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PDF
MIRIDeepImagingSurvey(MIDIS)oftheHubbleUltraDeepField
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
PPTX
7. General Toxicologyfor clinical phrmacy.pptx
PPTX
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
PPTX
2. Earth - The Living Planet earth and life
DOCX
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
PPTX
TOTAL hIP ARTHROPLASTY Presentation.pptx
PPTX
Introduction to Fisheries Biotechnology_Lesson 1.pptx
PPTX
neck nodes and dissection types and lymph nodes levels
PDF
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
PPTX
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
PDF
The scientific heritage No 166 (166) (2025)
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
. Radiology Case Scenariosssssssssssssss
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
ECG_Course_Presentation د.محمد صقران ppt
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
protein biochemistry.ppt for university classes
INTRODUCTION TO EVS | Concept of sustainability
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
MIRIDeepImagingSurvey(MIDIS)oftheHubbleUltraDeepField
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
7. General Toxicologyfor clinical phrmacy.pptx
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
2. Earth - The Living Planet earth and life
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
TOTAL hIP ARTHROPLASTY Presentation.pptx
Introduction to Fisheries Biotechnology_Lesson 1.pptx
neck nodes and dissection types and lymph nodes levels
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
The scientific heritage No 166 (166) (2025)

Introduction to Machine Learning

  • 1. Introduction to Machine Learning 15 Slides
  • 2. Definition • The art of making machines intelligent without explicit programming Machine Learning is a field which consists of learning algorithms or techniques which • Execute some tasks T (Regression/Classification) • Improve their performance P (model performance) • With experience E (Delta) Algorithms that can learn from observational data, and can make predictions based on it.
  • 3. 3 Stages of ML process • Representation (Selection of an algorithm/parameters) • Evaluation (Objective function) • Optimization (finding the optimal parameters)
  • 4. Types of Machine Learning Supervised Machine Learning • Training is done using labelled data • Algorithm learns the mapping function from the input to the output. Y = f(X) • Examples: • Regression – used to predict continuous values • Classification – used to predict categorical values • In supervised learning, the algorithm learns from “correct” answers. • The model is created and then used to predict answers from future data • Example: Train a model to predict car price based on car attributes using historical sales data. The model can predict optimal price for the new car that haven’t been sold before. Movie Genres
  • 5. Types of Machine Learning Unsupervised Machine Learning • Training is done using unlabeled data • Algorithms are left to their own devices to discover and present the interesting structure in the data. • Clustering – used to discover the inherent groupings in the data • Association – used to discover rules that describe large portions of the data • Example: group (cluster) of objects into 2 different sets based on characteristics of those objects. Dating Sites
  • 6. Evaluating Supervised Learning • If you have a set of training data that includes the value you are trying to predict; you don’t have to guess if the resulting model is good or bad. • If you have enough training data, you can split into two parts: a training set and a test set. • Then you train the model using training set. Then measure the model’s accuracy by asking it to predict values for the test set, and compare that to the unknown, true values.
  • 7. Supervised ML - Regression Regression is a technique that determines the relationship between one or more independent variables and a dependent variable Other naming style Dependent : Independent Target : Input Criterion : Predictor
  • 8. Linear Regression • Simple Linear Regression : Only one independent variable • Multiple Linear Regression : Two or more independent variables Non-Linear Regression • Dependent or non-linear transformation of independent variables Supervised ML - Regression
  • 9. Simple Linear Regression In a Simple Linear Regression, we fit the best line between the dependent variable and the independent variable given as y = mx + c m = Co-efficient of x (i.e. change in y divided by change in x) c = Intercept (represents the variability in y) • Fit a line to a dataset of observations • Use this line to predict unobserved values
  • 10. Real life scenarios will definitely have many more independent variables than just one. To model an equation that studies the relationship between the dependent variable and multiple independent variables. The representation equation can be extended to Y = m0 + m1x1 + m2x2 + m3x3 + … + mnxn Where, m0 is the intercept m1 is the coefficient of variable x1 M2 is the coefficient of variable x2 And so on… Multiple Linear Regression
  • 11. Logistic Regression is a technique that determines the relationship between a dependent variable and one or more independent variables, with the type of dependent being a dichotomous categorical variable. To maximize or minimize a function, we differentiate the function and find the point when the gradient is zero. Since, this is a non-linear function, we use the gradient descent i.e. calculate the gradient of the function at each i.e. update the values of parameters Supervised ML - Classification
  • 12. The key objective in clustering is to identify distinct groups/clusters based on similarities within a given dataset. Agglomerative (Hierarchical) Divisive (K-Means) K-Means Clustering • Start with random point initialization of the required number of centers. (“K”in K- means stands for the number of clusters) • Assign each data point to the “center“ closest to it. (Distance metric = Normal Euclidean distance) • Recalculate centers by averaging the dimensions of the points belonging to each cluster. • Repeat with new centers until we reach a point where the assignments become stable. Unsupervised ML - Classification
  • 13. K-Means Clustering • Start with random point initialization of the required number of centers. (“K”in K-means stands for the number of clusters) • Assign each data point to the “center“ closest to it. (Distance metric = Normal Euclidean distance) • Recalculate centers by averaging the dimensions of the points belonging to each cluster. • Repeat with new centers until we reach a point where the assignments become stable. Hierarchical Clustering • Start with “n”clusters (n= # of data points) • Combine the 2 closest clusters • Repeat till only 1 cluster exists. Unsupervised ML - Classification
  • 14. Evaluating ML models for Regression
  • 15. Evaluating ML models for Regression