MLT unit 1- Introduction To Machine Learning And types Of ML , Cross Validation

neha540357 54 views 37 slides Jul 25, 2024
Slide 1
Slide 1 of 37
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37

About This Presentation

Machine Learning Techniques Unit 1


Slide Content

CHAPTER 1:
Introduction

1.Unit I:
1. Introduction
2.What is Machine learning,
3. why machine learning,
4. History of Machine Learning,
5.Fundamentals of Machine Learning,
6. Data needed,
7.ML Techniques overview,
8.Validation Techniques (Cross-Validations),
9.Supervised Learning,
10.unsupervised learning,
11.reinforcement learning

Learning
Learning is any process by which system
improves performance from experience-
Herbert A. Simon
Alpydin & Ch. Eick: ML Topic1 3

Why “Learn”?
Learning is used when:
Human expertise does not exist (navigating on
Mars),
Humans are unable to explain their expertise
(speech recognition)
Solution changes in time (routing on a computer
network)
Solution needs to be adapted to particular cases
(user biometrics)
4

What We Talk About When We
Talk About“Learning”
Learning general models from a data of particular
examples
Datais cheapand abundant (data warehouses, data
marts);
knowledgeis expensiveand scarce.
Example in retail: Customer transactions to
consumer behavior:
People who bought “Bread” also bought “Butter”
(www.amazon.com)
Build a model that is a good and useful
approximationto the data.
5

History
6

Alpydin & Ch. Eick: ML Topic1 7

Alpydin & Ch. Eick: ML Topic1 8

Machine Learning
It is something we encounter on a daily basis.
In its simplest form,
machine learning is a set of algorithms learned
from data and/or experiences, rather than being
explicitly programmed.
The goalof AI is to imitate and mimic human
behavior, and machine learning gives us the
mathematical toolsthat allow us to do that.
9

What is Machine Learning?
“Learning is any process by which a system
improves performance from experience
Machine Learning
Study of algorithms that
improve their performance
at some task
with experience
Optimize a performance criterion using example data
or past experience.
10

Alpydin & Ch. Eick: ML Topic1 11

When Do We Use Machine Learning?
ML is used when:
• Human expertisedoes not exist (navigating on Mars)
• Humans can’t explain their expertise (speech recognition)
• Models must be customized(personalized medicine)
• Models are based on huge amounts of data (genomics)
Alpydin & Ch. Eick: ML Topic1 12

Growth of Machine Learning
Machine learning is preferred approach to
Speech recognition, Natural language processing
Computer vision
Medical outcomes analysis
Robot control
This trend is accelerating
Improved machine learning algorithms
Improved data capture, networking, faster computers
Software too complex to write by hand
New sensors / IO devices
Demand for self-customization to user, environment
Alpydin & Ch. Eick: ML Topic1 13

Applications of Machine
Learning
Alpydin & Ch. Eick: ML Topic1 14

Machine learning finds applications across a wide range
of domains, including:
Finance: Predicting stock prices, credit risk assessment,
fraud detection.
Healthcare: Disease diagnosis, medical image analysis,
drug discovery.
Marketing: Customer segmentation, recommendation
systems, personalized advertising.
Natural Language Processing (NLP): Sentiment analysis,
language translation, chatbots.
Computer Vision: Object detection, facial recognition,
autonomous vehicles.
Gaming: Character behavior modeling, opponent AI,
procedural content generation.
Manufacturing: Quality control, predictive maintenance,
supply chain optimization.
Alpydin & Ch. Eick: ML Topic1 15

Types of Machine Learning
Alpydin & Ch. Eick: ML Topic1 16

Machine learning can be broadly categorized into three
main types:
Supervised Learning: In supervised learning, the
algorithm learns from labeled examples in the form of
input-output pairs. It aims to map inputs to correct
outputs by identifying patterns in the data. Common
algorithms include linear regression (for regression
tasks) and classification algorithms like decision trees,
support vector machines, and neural networks.
Unsupervised Learning: Unsupervised learning involves
learning patterns and structures from unlabeled data.
Clustering and dimensionality reduction are typical
tasks in unsupervised learning. K-means clustering and
principal component analysis (PCA) are popular
unsupervised algorithms.
Alpydin & Ch. Eick: ML Topic1 17

Reinforcement Learning: Reinforcement learning is
inspired by behavioral psychology, where an agent
learns how to interact with an environment to maximize
rewards. It involves taking actions in an environment to
achieve a specific goal. Reinforcement learning is
widely used in robotics, game playing, and autonomous
systems.
Alpydin & Ch. Eick: ML Topic1 18

Alpydin & Ch. Eick: ML Topic1 19

Alpydin & Ch. Eick: ML Topic1 20

Supervised-Types
Alpydin & Ch. Eick: ML Topic1 21

Alpydin & Ch. Eick: ML Topic1 22

Unsupervised -Types
23

Alpydin & Ch. Eick: ML Topic1 24

Alpydin & Ch. Eick: ML Topic1 25

Learning Associations
Basket analysis:
P (Y | X ) probability that somebody who buys Xalso buys Y where Xand Y
are products/services.
Example: P ( chips |coke) = 0.7
Market-Basket transactionsTID Items
1 Bread, Milk
2 Bread, Diaper, Beer, Eggs
3 Milk, Diaper, Beer, Coke
4 Bread, Milk, Diaper, Beer
5 Bread, Milk, Diaper, Coke

Classification
27
Example: Credit scoring
Differentiating between
low-riskand high-risk
customers from their
incomeand savings
Discriminant:IF income> θ
1AND savings> θ
2
THEN low-risk ELSE high-risk
Model

Classification: Applications
Pattern recognition
Face recognition: Pose, lighting, occlusion (glasses,
beard), make-up, hair style
Character recognition: Different handwriting styles.
Speech recognition: Temporal dependency.
Use of a dictionary or the syntax of the language.
Sensor fusion: Combine multiple modalities; eg, visual (lip
image) and acoustic for speech
Medical diagnosis: From symptoms to illnesses
Web Advertizing: Predict if a user clicks on an ad on the
Internet.
28

Face Recognition
29
Training examples of a person
Test images
AT&T Laboratories, Cambridge UK
http://www.uk.research.att.com/facedatabase.html

Example: Price of a used car
x : car attributes
y : price
y = g (x | θ)
g ( ) model,
θparameters
30
Prediction: Regression
y = wx+w
0

Regression Applications
Navigating a car: Angle of the steering wheel (CMU NavLab)
Kinematics of a robot arm
31
α
1= g
1(x,y)
α
2= g
2(x,y)
α
1
α
2
(x,y)

Supervised Learning: Uses
Prediction of future cases: Use the rule to predict the
output for future inputs
Knowledge extraction: The rule is easy to understand
Compression: The rule is simpler than the data it
explains
Outlier detection: Exceptions that are not covered by
the rule, e.g., fraud
32
Example: decision trees tools that create rules

Unsupervised Learning
Learning “what normally happens”
No output
Clustering: Grouping similar instances
Other applications: Summarization, Association Analysis
Example applications
Customer segmentation in CRM
Image compression: Color quantization
Bioinformatics: Learning motifs
33

Reinforcement Learning
Topics:
Policies: what actions should an agent take in a particular
situation
Utility estimation: how good is a state (used by policy)
No supervised output but delayed reward
Credit assignment problem(what was responsible for
the outcome)
Applications:
Game playing
Robot in a maze
Multiple agents, partial observability, ...
34

validation set
usesasubsetofthetrainingdatatoprovideanunbiased
evaluation of a model.
Thevalidationdatasetcontrastswithtrainingandtest
setsinthatitisanintermediatephaseusedforchoosing
thebestmodelandoptimizingit.
Alpydin & Ch. Eick: ML Topic1 35

Alpydin & Ch. Eick: ML Topic1 36

Alpydin & Ch. Eick: ML Topic1 37
Tags