100% found this document useful (3 votes)
187 views

L3 - Supervised and Unsupervised Learning

Machine learning involves programming computers to optimize performance using example data or past experience. It uses algorithms that improve at tasks with experience by analyzing data to understand relationships and identify patterns. There are three main types of machine learning: supervised learning which uses labeled training data, unsupervised learning which uses unlabeled data to find hidden patterns, and reinforcement learning which uses rewards and punishments to learn optimal behavior. Machine learning has many applications and is used across industries like healthcare, finance, e-commerce, and more.

Uploaded by

Gaurav Rohilla
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
187 views

L3 - Supervised and Unsupervised Learning

Machine learning involves programming computers to optimize performance using example data or past experience. It uses algorithms that improve at tasks with experience by analyzing data to understand relationships and identify patterns. There are three main types of machine learning: supervised learning which uses labeled training data, unsupervised learning which uses unlabeled data to find hidden patterns, and reinforcement learning which uses rewards and punishments to learn optimal behavior. Machine learning has many applications and is used across industries like healthcare, finance, e-commerce, and more.

Uploaded by

Gaurav Rohilla
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

Introduction to Machine Learning

What is Machine Learning?


• Machine learning is programming computers to
optimize a performance criterion using example data
or past experience.

• Machine learning is the best tool so far to analyze,


understand and identify a pattern in the data.
• Machine learning uses data to feed an algorithm that can
understand the relationship between the input and the
output.
• When the machine finished learning, it can predict the
value or the class of new data point.
What is Machine Learning?
• Machine Learning
• Study of algorithms that
• improve their performance
• at some task
Computer
• with experience Science
• Optimize a performance criterion using example data or
past experience. ML
• Role of Statistics: Inference from a sample Statistics Engineering

• Role of Computer science: Efficient algorithms to


• Solve the optimization problem
• Representing and evaluating the model for inference

3
When to use Machine Learning
Any field that needs to interpret and act on data can benefit from Machine learning
Techniques.

A real-world problem is a candidate for the application of machine learning if –

• Historical data exists in a huge amount


• A pattern exists in the data
• Extremely hard to pin down a solution mathematically
• Human expertise does not exist (navigating on Mars) or Humans are unable to
explain their expertise (speech recognition)
• Solution changes in time (routing on a computer network) or Solution needs to be
adapted to particular cases (user biometrics)
Applications of Machine Learning
• Search engines: best match for your query. Recommendations and suggestions
• HealthCare Sector
• Computational biology: rational design drugs in the computer based on past experiments
• Finance: decide who to send what credit card offers to. Evaluation of risk on credit
offers. How to decide where to invest money.
• E-commerce: Predicting customer churn. Whether or not a transaction is fraudulent.
• Space exploration: space probes and radio astronomy.
• Robotics: how to handle uncertainty in new environments. Autonomous. Self-driving car.
• Information extraction: Ask questions over databases across the web.
• Social networks: Data on relationships and preferences. Machine learning to extract
value from data.
• Debugging: Use in computer science problems like debugging. Labor intensive process.
Could suggest where the bug could be.
Basic Machine Learning Process
Types of Machine Learning
9
Supervised Learning

It is very similar to teaching a child with the use of flash cards.

10
Supervised Learning
• The outcome or output for the given input is known before itself” and the machine must be able to map or assign the
given input to the output.
• Regression and classification problems are mainly solved here.
• Labelled data is used for training here.
• Popular Algorithms: Linear Regression, Support Vector Machines (SVM), Neural Networks, Decision Trees, Naive
Bayes, Nearest Neighbor.
• It is mainly used in Predictive Modelling.
• Supervised learning is often described as Task-driven. It is highly focused on a singular task, feeding more and more
examples to the algorithm until it can accurately perform on that task. Examples include:
Advertisement Popularity: Many of the ads you see as you browse the internet are placed there because a learning
algorithm said that they were of reasonable popularity (and clickability).
Spam Classification: That spam filter is a supervised learning system. Fed email examples and labels (spam/not spam),
these systems learn how to preemptively filter out malicious emails so that their user is not harassed by them.
Face Recognition: Do you use Facebook? Most likely your face has been used in a supervised learning algorithm that is
trained to recognize your face. Having a system that takes a photo, finds faces, and guesses who that is in the photo
(suggesting a tag) is a supervised process. It has multiple layers to it, finding faces and then identifying them, but is still
supervised nonetheless.
Supervised Learning
Unsupervised Learning
Unsupervised Learning
• Unlabeled data is used in unsupervised learning. “The outcome or output for
the given inputs is unknown”, here input data is given and the model is run on it.
• The image or the input given are grouped together here and insights on the inputs
can be found here(which is the most of the real world data available).
• Clustering problems(grouping), Anomaly Detection (in banks for unusual
transactions) where there is a need for finding relationships among the data
given, Associations such as people that buy X also tend to buy Y.
• Popular Algorithms: k-means clustering, Association rule.
• It is mainly used in Descriptive Modelling.
• Because unsupervised learning is based upon the data and its properties, we can
say that unsupervised learning is data-driven.
Unsupervised Learning Examples
• Recommender Systems: If you’ve ever used YouTube or Netflix, you’ve most likely encountered a
video recommendation system. These systems are often times placed in the unsupervised domain.
We know things about videos, maybe their length, their genre, etc. We also know the watch history
of many users. Taking into account users that have watched similar videos as you and then enjoyed
other videos that you have yet to see, a recommender system can see this relationship in the data and
prompt you with such a suggestion.
• Buying Habits: It is likely that your buying habits are contained in a database somewhere and that
data is being bought and sold actively at this time. These buying habits can be used in unsupervised
learning algorithms to group customers into similar purchasing segments. This helps companies
market to these grouped segments and can even resemble recommender systems.
• Grouping User Logs: Less user facing, but still very relevant, we can use unsupervised learning to
group user logs and issues. This can help companies identify central themes to issues their customers
face and rectify these issues, through improving a product or designing an FAQ to handle common
issues. Either way, it is something that is actively done and if you’ve ever submitted an issue with a
product or submitted a bug report, it is likely that it was fed to an unsupervised learning algorithm to
cluster it with other similar issues.
15
Semi-supervised Learning
• The most basic disadvantage of any Supervised Learning algorithm is that the
dataset has to be hand-labeled either by a Machine Learning Engineer or a Data
Scientist. This is a very costly process, especially when dealing with large volumes
of data.
• The most basic disadvantage of any Unsupervised Learning is that it’s
application spectrum is limited.
• Semi-supervised learning overcomes both the above cons.
• It is in-between that of Supervised and Unsupervised Learning.
• The basic procedure involved is that first, the programmer will cluster similar data
using an unsupervised learning algorithm and then use the existing labeled data to
label the rest of the unlabeled data.
Semi-supervised Learning
Summary
• Supervised: All data is labeled and the algorithms learn to predict the output from
the input data.

• Unsupervised: All data is unlabeled and the algorithms learn to inherent structure
from the input data.

• Semi-supervised: Some data is labeled but most of it is unlabeled and a mixture


of supervised and unsupervised techniques can be used.

18
Reinforcement Learning
Summary: Types of Machine Learning
• Supervised learning: (also called inductive learning) Training data includes
desired outputs. This is spam this is not, learning is supervised.
• Unsupervised learning: Training data does not include desired outputs. Example
is clustering. It is hard to tell what is good learning and what is not.
• Semi-supervised learning: Training data includes a few desired outputs.
• Reinforcement learning: Rewards from a sequence of actions. AI types like it, it is
the most ambitious type of learning.
Resources:
Datasets
• UCI Repository:
http://www.ics.uci.edu/~mlearn/MLRepository.html
• UCI KDD Archive:
http://kdd.ics.uci.edu/summary.data.application.ht
ml
• Statlib: http://lib.stat.cmu.edu/
• Delve: http://www.cs.utoronto.ca/~delve/

21
Importance of AI and Machine Learning
• https://www.youtube.com/watch?v=czVeSFH4dWc
• https://www.youtube.com/watch?v=f_uwKZIAeM0
Commonly Used Terms
• Labelled data: It consists of a set of data, an example would include all the
labelled cats or dogs images in a folder, all the prices of the house based on size
etc.
• Classification: Separating into groups having definite values Eg. 0 or 1, cat or dog
or orange etc.
• Regression: Estimating the most probable values or relationship among variables.
Eg. estimation of the price of the house based on size.
• Association: Discovering interesting relations between variables in large
databases where the connection found is crucial.
• Prediction: Once our model is ready, it can be fed a set of inputs to which it will
provide a predicted output(label).
Commonly used terms

• Model: A model is a specific representation learned from data by


applying some machine learning algorithm. A model is also called
hypothesis.

• Training : The idea is to give a set of inputs(features) and it’s expected


outputs(labels), so after training, we will have a model (hypothesis) that
will then map new data to one of the categories trained on.

• Feature: A feature is an individual measurable property of our data. A


set of numeric features can be conveniently described by a feature
vector. Feature vectors are fed as input to the model. For example, in
order to predict a fruit, there may be features like color, smell, taste, etc.

You might also like