Docsity

Supervised And Unsuperivsed, Lecture notes of Machine Learning

Toggle sidebar
bg1
Problem Based Learning Case Study Presentation
Data Science And Analytics
MEHRAN UNIVERSITY OF ENGINEERING AND
TECHNOLOGY
S.Z.A.B CAMPUS KHAIRPUR MIR’S,
Department of Software Engineering
6th Semester 3rdYear
Roll No: K17SW14
NAME : Basit Ali
Date: 07/19/2020
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download Supervised And Unsuperivsed and more Lecture notes Machine Learning in PDF only on Docsity!

Problem Based Learning Case Study Presentation

Data Science And Analytics

MEHRAN UNIVERSITY OF ENGINEERING AND

TECHNOLOGY

S.Z.A.B CAMPUS KHAIRPUR MIR’S,

Department of Software Engineering

th

Semester 3

rd

Year

Roll No: K 17 SW 14 NAME : Basit Ali Date: 07 / 19 / 2020

Introduction to Supervised Learning vs Unsupervised Learning

Introduction to Supervised Learning

 Supervised and Unsupervised learning are the two techniques of machine

learning. But both the techniques are used in different scenarios and with

different datasets.

 Supervised Learning is simply a process of learning algorithm from the

training dataset.

 Supervised learning is a process of providing input data as well as correct

output data to the machine learning model. The aim of a supervised learning

algorithm is to find a mapping function to map the input variable(x) with the

output variable(y).

 Y = f(X)

Types of supervised Machine learning Algorithms:

 1. Regression

 Regression algorithms are used if there is a relationship between the input variable and the

output variable. It is used for the prediction of continuous variables, such as Weather forecasting,

Market Trends, etc. Below are some popular Regression algorithms which come under supervised

learning:

 Linear Regression

 Regression Trees

 Logistic Regression

 Non-Linear Regression

 Polynomial Regression

Real Time Examples  Object recognition in computer vision  Spam detection  Pattern recognition  Speech recognition  Handwriting recognition

Introduction to Unsupervised Learning  Unsupervised learning is a type of machine learning in which models are trained using unlabeled dataset and are allowed to act on that data without any supervision.  The goal of unsupervised learning is to find the underlying structure of dataset, group that data according to similarities, and represent that dataset in a compressed for  Unsupervised learning is helpful for finding useful insights from the data.  Unsupervised learning works on unlabeled and uncategorized data which make unsupervised learning more important.  Unsupervised learning is a type of machine learning algorithm that brings order to the dataset and makes sense of data.  Unsupervised machine learning algorithms are used to group unstructured data according to its similarities and distinct patterns in the dataset.

Unsupervised Learning algorithms:

  • K-means clustering
  • KNN (k-nearest neighbors)
  • Hierarchal clustering
  • Anomaly detection
  • Neural Networks
  • Principle Component Analysis
  • Independent Component Analysis
  • Apriori algorithm
  • Singular value decomposition

Real Time Examples  Tesla Self Driving Car  Google Map  Facebook

Parameters Supervised machine learning

technique

Unsupervised machine

learning technique

Process In a supervised learning model,

input and output variables will

be given.

In unsupervised learning

model, only input data will be

given

Input Data Algorithms are trained using

labeled data.

Algorithms are used against

data which is not labeled

Algorithms Used Support vector machine, Neural

network, Linear and logistics

regression, random forest, and

Classification trees.

Unsupervised algorithms can

be divided into different

categories: like Cluster

algorithms, K-means,

Hierarchical clustering, etc.

Computational

Complexity

Supervised learning is a simpler

method.

Unsupervised learning is

computationally complex

Use of Data Supervised learning model uses

training data to learn a link

between the input and the

outputs.

Unsupervised learning does

not use output data.

Accuracy of Results Highly accurate and trustworthy

method.

Less accurate and trustworthy

method.

Real Time Learning Learning method takes place

offline.

Learning method takes place in

real time.

Number of Classes Number of classes is known. Number of classes is not

known.

Main Drawback Classifying big data can be a real

challenge in Supervised

Learning.

You cannot get precise

information regarding data

sorting, and the output as data

used in unsupervised learning

is labeled and not known.

 Unsupervised algorithms can be split into different categories: Cluster algorithms, K- means, Hierarchical clustering, Dimensionally reduction algorithms, Anomaly detections, etc.  Classification and regression area widely used algorithms in supervised learning. Support Vector Machines (SVM) are supervised machine learning models with associated learning algorithms, those can be used for both classification and regression purposes, but mostly used for classification problems.

 To understand the supervised learning and unsupervised learning better, let’s take real-life examples. Supervised learning: Let’s take one of Gmail’s functionality as an example, which is a spam mail. Based on past information about spam emails, filtering out a new incoming email into Inbox folder or Junk folder. In this scenario Gmail is modeled a mapping function to segregate the incoming mail based on the prior knowledge about the mails, this is supervised learning.  Unsupervised learning: Let’s assume a friend invites you to her party, where you meet new people. Now you will classify them using no prior knowledge (Unsupervised learning) and this classification could be on any trait. It could be age group, gender, dressing, educational qualification or whatever way you would like. Since you didn’t use any prior knowledge about people and classified them, it comes under unsupervised learning.

Introduction to Naive Bayes Algorithm  Naive Bayes Algorithm is one of the popular classification machine learning algorithms that helps to classify the data based upon the conditional probability values computation  It implements the Bayes theorem for the computation and used class levels represented as feature values or vectors of predictors for classification.

What is Bayes Theorem?  Bayes Theorem is the extension of Conditional probability. Conditional probability helps us to determine the probability of A given B, denoted by P(A|B). So Bayes’ theorem says if we know P(A|B) then we can determine P(B|A), given that P(A) and P(B) are known to us  P(A|B) = P(A) * P(B|A)/P(B) .