SlideShare a Scribd company logo
Programming for Data
Analysis
Week 11
Dr. Ferdin Joe John Joseph
Faculty of Information Technology
Thai – Nichi Institute of Technology, Bangkok
Today’s lesson
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
2
• Binary Classification
• Naïve Bayes Classifier
• Support Vector Machine
Naïve Bayes Classifier
• Conditional Probability Model of Classification
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
3
Conditional Probability Model of Classification
• The conditional probability can be calculated using the joint
probability, although it would be intractable.
• Bayes Theorem provides a principled way for calculating the
conditional probability.
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
4
Bayes Theorem
• P(A|B) = P(B|A) * P(A) / P(B)
• We can frame classification as a conditional classification problem
with Bayes Theorem as follows:
P(yi | x1, x2, …, xn) = P(x1, x2, …, xn | yi) * P(yi) / P(x1, x2, …, xn)
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
5
Naïve Bayes
• For simplifying the calculation
• The Bayes Theorem assumes that each input variable is dependent
upon all other variables.
• This is a cause of complexity in the calculation.
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
6
Calculation of Prior and Conditional
Probabilities
• P(yi) = examples with yi / total examples
• In the case of categorical variables, such as counts or labels, a
multinomial distribution can be used.
• If the variables are binary, such as yes/no or true/false, a binomial
distribution can be used.
• If a variable is numerical, such as a measurement, often a Gaussian
distribution is used.
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
7
Naïve Bayes Distribution
• Binomial Naïve Bayes: Naïve Bayes that uses a binomial distribution.
• Multinomial Naïve Bayes: Naïve Bayes that uses a multinomial
distribution.
• Gaussian Naïve Bayes: Naïve Bayes that uses a Gaussian distribution.
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
8
Preparation of dataset
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
9
Fitting Probability Distribution
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
10
Sorting Data
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
11
Calculate Priors
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
12
Fit Distribution
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
13
Summary
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
14
Independent Conditional Probability
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
15
Taking a sample
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
16
Probability Scores
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
17
Wrap Up
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
18
Gaussian Naïve Bayes
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
19
Lab Exercise
• Use this source code and make a classification report which gives
accuracy, precision, recall and F1-score
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
20
Support Vector Machine
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
21
SVM Objective
• A training set, S, for an SVM is comprised of m samples.
• The features, x, consist of real numbers and the classifications, y,
must be -1 or 1.
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
22
SVM Hyperplane
• The SVM hyperlane is defined by the weight vector, w, and the bias, b,
and is defined as:
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
23
Example for 2 Feature
• Hyperplane for two features can be written as:
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
24
Libraries
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
25
Data Clusters
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
26
Data Clusters
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
27
Prepare Datasets
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
28
Learning Rate
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
29
Learning Rate
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
30
Draw Decision Boundary
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
31
Plot Data
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
32
Plot Data
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
33
Test Classifier
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
34
Test Classifier
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
35
Output
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
36
Lab Exercise
• Create Confusion Matrix and classification report for SVM
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
37
DSA 207 – Binary Classifier
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
38

More Related Content

PDF
Week 9: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
PDF
Week 8: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
PDF
Programming for Data Analysis: Week 4
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Ferdin Joe John Joseph PhD
 
PDF
Programming for Data Analysis: Week 3
Ferdin Joe John Joseph PhD
 
PDF
Week 10: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
PDF
Week 1: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
PDF
Week2: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
Week 9: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
Week 8: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
Programming for Data Analysis: Week 4
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Ferdin Joe John Joseph PhD
 
Programming for Data Analysis: Week 3
Ferdin Joe John Joseph PhD
 
Week 10: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
Week 1: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 
Week2: Programming for Data Analysis
Ferdin Joe John Joseph PhD
 

What's hot (20)

PDF
Blockchain Technology - Week 5 - Cryptography and Steganography
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 9 - Blockciphers
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 4 - Hyperledger and Smart Contracts
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week 10
Ferdin Joe John Joseph PhD
 
PDF
Data Wrangling Week 4
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 11 - Thai-Nichi Institute of Technology
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 2 - Blockchain Terminologies
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week 6
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week3
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 1 - Introduction to Blockchain
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 3 - FinTech and Cryptocurrencies
Ferdin Joe John Joseph PhD
 
PDF
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
Ferdin Joe John Joseph PhD
 
PDF
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week2
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week1
Ferdin Joe John Joseph PhD
 
PDF
Week 12: Cloud AI- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Week 11: Cloud Native- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 5 - Cryptography and Steganography
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 9 - Blockciphers
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 4 - Hyperledger and Smart Contracts
Ferdin Joe John Joseph PhD
 
Data wrangling week 10
Ferdin Joe John Joseph PhD
 
Data Wrangling Week 4
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 11 - Thai-Nichi Institute of Technology
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 2 - Blockchain Terminologies
Ferdin Joe John Joseph PhD
 
Data wrangling week 6
Ferdin Joe John Joseph PhD
 
Data wrangling week3
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 1 - Introduction to Blockchain
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 3 - FinTech and Cryptocurrencies
Ferdin Joe John Joseph PhD
 
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
Ferdin Joe John Joseph PhD
 
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Data wrangling week2
Ferdin Joe John Joseph PhD
 
Data wrangling week1
Ferdin Joe John Joseph PhD
 
Week 12: Cloud AI- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Week 11: Cloud Native- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Ferdin Joe John Joseph PhD
 
Ad

Similar to Week 11: Programming for Data Analysis (20)

PPTX
Learning Tendency Analysis of Scratch Programming Course(Entry Class) for Upp...
ryouta039
 
PDF
Data Wrangling Week 7
Ferdin Joe John Joseph PhD
 
PDF
Unit 5 Quantization
Dr Piyush Charan
 
PPTX
Prototype System for Recommending Academic Subjects for Students' Self Design...
siramatu-lab
 
PDF
Data wrangling week 5
Ferdin Joe John Joseph PhD
 
PDF
Deep Learning and CNN Architectures
Ferdin Joe John Joseph PhD
 
PPTX
2019 DSA 105 Introduction to Data Science Week 3
Ferdin Joe John Joseph PhD
 
PDF
IRJET- Stabilization of Black Cotton Soil using Rice Husk Ash and Lime
IRJET Journal
 
PDF
IRJET- Student Placement Prediction using Machine Learning
IRJET Journal
 
PDF
Smart SE: Recurrent Education Program of IoT and AI for Business
Hironori Washizaki
 
PPTX
Application of a Novel Subject Classification Scheme for a Bibliographic Data...
National Institute of Informatics
 
PPTX
DETECTION OF PHISHING WEBSITE FROM URL'S BY USING CLASSIFICATION TECHNIQUES p...
PavanSomisetty1
 
PDF
Educational Data Mining to Analyze Students Performance – Concept Plan
IRJET Journal
 
PPTX
Natural Disasters prediction with quantum algorithm
SongheangAi
 
PPTX
cache teaching analogy dataa naylatics Download PDF(Updated Curriculum in Bo...
Mayurkumarpatil1
 
PDF
IRJET- Big Data and Bayes Theorem used Analyze the Student’s Performance in E...
IRJET Journal
 
PPTX
Intelligent Career Guidance System.pptx
Anonymous366406
 
PDF
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Ferdin Joe John Joseph PhD
 
PDF
Lec 1 integrating data science and data analytics in various research thrust
Menchita Falcutila Dumlao
 
PDF
2015 03-28-eb-final
Christopher Wilson
 
Learning Tendency Analysis of Scratch Programming Course(Entry Class) for Upp...
ryouta039
 
Data Wrangling Week 7
Ferdin Joe John Joseph PhD
 
Unit 5 Quantization
Dr Piyush Charan
 
Prototype System for Recommending Academic Subjects for Students' Self Design...
siramatu-lab
 
Data wrangling week 5
Ferdin Joe John Joseph PhD
 
Deep Learning and CNN Architectures
Ferdin Joe John Joseph PhD
 
2019 DSA 105 Introduction to Data Science Week 3
Ferdin Joe John Joseph PhD
 
IRJET- Stabilization of Black Cotton Soil using Rice Husk Ash and Lime
IRJET Journal
 
IRJET- Student Placement Prediction using Machine Learning
IRJET Journal
 
Smart SE: Recurrent Education Program of IoT and AI for Business
Hironori Washizaki
 
Application of a Novel Subject Classification Scheme for a Bibliographic Data...
National Institute of Informatics
 
DETECTION OF PHISHING WEBSITE FROM URL'S BY USING CLASSIFICATION TECHNIQUES p...
PavanSomisetty1
 
Educational Data Mining to Analyze Students Performance – Concept Plan
IRJET Journal
 
Natural Disasters prediction with quantum algorithm
SongheangAi
 
cache teaching analogy dataa naylatics Download PDF(Updated Curriculum in Bo...
Mayurkumarpatil1
 
IRJET- Big Data and Bayes Theorem used Analyze the Student’s Performance in E...
IRJET Journal
 
Intelligent Career Guidance System.pptx
Anonymous366406
 
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Ferdin Joe John Joseph PhD
 
Lec 1 integrating data science and data analytics in various research thrust
Menchita Falcutila Dumlao
 
2015 03-28-eb-final
Christopher Wilson
 
Ad

More from Ferdin Joe John Joseph PhD (12)

PDF
Invited Talk DGTiCon 2022
Ferdin Joe John Joseph PhD
 
PDF
Week 10: Cloud Security- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Ferdin Joe John Joseph PhD
 
PDF
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
PDF
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Ferdin Joe John Joseph PhD
 
PDF
Hadoop in Alibaba Cloud
Ferdin Joe John Joseph PhD
 
PDF
Cloud Computing Essentials in Alibaba Cloud
Ferdin Joe John Joseph PhD
 
PDF
Transforming deep into transformers – a computer vision approach
Ferdin Joe John Joseph PhD
 
PDF
Deep learning - Introduction
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week 11
Ferdin Joe John Joseph PhD
 
PDF
Data wrangling week 9
Ferdin Joe John Joseph PhD
 
Invited Talk DGTiCon 2022
Ferdin Joe John Joseph PhD
 
Week 10: Cloud Security- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Ferdin Joe John Joseph PhD
 
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Ferdin Joe John Joseph PhD
 
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Ferdin Joe John Joseph PhD
 
Hadoop in Alibaba Cloud
Ferdin Joe John Joseph PhD
 
Cloud Computing Essentials in Alibaba Cloud
Ferdin Joe John Joseph PhD
 
Transforming deep into transformers – a computer vision approach
Ferdin Joe John Joseph PhD
 
Deep learning - Introduction
Ferdin Joe John Joseph PhD
 
Data wrangling week 11
Ferdin Joe John Joseph PhD
 
Data wrangling week 9
Ferdin Joe John Joseph PhD
 

Recently uploaded (20)

PPTX
INFO8116 - Week 10 - Slides.pptx big data architecture
guddipatel10
 
PPTX
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
PDF
Company Profile 2023 PT. ZEKON INDONESIA.pdf
hendranofriadi26
 
PDF
A Systems Thinking Approach to Algorithmic Fairness.pdf
Epistamai
 
PDF
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
PDF
Chad Readey - An Independent Thinker
Chad Readey
 
PPTX
Economic Sector Performance Recovery.pptx
yulisbaso2020
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PPTX
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
PPTX
Purple and Violet Modern Marketing Presentation (1).pptx
SanthoshKumar229321
 
PPTX
Presentation1.pptxvhhh. H ycycyyccycycvvv
ItratBatool16
 
PPTX
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
PPTX
Azure Data management Engineer project.pptx
sumitmundhe77
 
PDF
Company Presentation pada Perusahaan ADB.pdf
didikfahmi
 
PDF
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
PPTX
1intro to AI.pptx AI components & composition
ssuserb993e5
 
PDF
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
PDF
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
PPTX
Decoding Physical Presence: Unlocking Business Intelligence with Wi-Fi Analytics
meghahiremath253
 
PPTX
Analysis of Employee_Attrition_Presentation.pptx
AdawuRedeemer
 
INFO8116 - Week 10 - Slides.pptx big data architecture
guddipatel10
 
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
Company Profile 2023 PT. ZEKON INDONESIA.pdf
hendranofriadi26
 
A Systems Thinking Approach to Algorithmic Fairness.pdf
Epistamai
 
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
Chad Readey - An Independent Thinker
Chad Readey
 
Economic Sector Performance Recovery.pptx
yulisbaso2020
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
Purple and Violet Modern Marketing Presentation (1).pptx
SanthoshKumar229321
 
Presentation1.pptxvhhh. H ycycyyccycycvvv
ItratBatool16
 
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
Azure Data management Engineer project.pptx
sumitmundhe77
 
Company Presentation pada Perusahaan ADB.pdf
didikfahmi
 
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
1intro to AI.pptx AI components & composition
ssuserb993e5
 
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
Decoding Physical Presence: Unlocking Business Intelligence with Wi-Fi Analytics
meghahiremath253
 
Analysis of Employee_Attrition_Presentation.pptx
AdawuRedeemer
 

Week 11: Programming for Data Analysis

  • 1. Programming for Data Analysis Week 11 Dr. Ferdin Joe John Joseph Faculty of Information Technology Thai – Nichi Institute of Technology, Bangkok
  • 2. Today’s lesson Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 2 • Binary Classification • Naïve Bayes Classifier • Support Vector Machine
  • 3. Naïve Bayes Classifier • Conditional Probability Model of Classification Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 3
  • 4. Conditional Probability Model of Classification • The conditional probability can be calculated using the joint probability, although it would be intractable. • Bayes Theorem provides a principled way for calculating the conditional probability. Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 4
  • 5. Bayes Theorem • P(A|B) = P(B|A) * P(A) / P(B) • We can frame classification as a conditional classification problem with Bayes Theorem as follows: P(yi | x1, x2, …, xn) = P(x1, x2, …, xn | yi) * P(yi) / P(x1, x2, …, xn) Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 5
  • 6. Naïve Bayes • For simplifying the calculation • The Bayes Theorem assumes that each input variable is dependent upon all other variables. • This is a cause of complexity in the calculation. Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 6
  • 7. Calculation of Prior and Conditional Probabilities • P(yi) = examples with yi / total examples • In the case of categorical variables, such as counts or labels, a multinomial distribution can be used. • If the variables are binary, such as yes/no or true/false, a binomial distribution can be used. • If a variable is numerical, such as a measurement, often a Gaussian distribution is used. Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 7
  • 8. Naïve Bayes Distribution • Binomial Naïve Bayes: Naïve Bayes that uses a binomial distribution. • Multinomial Naïve Bayes: Naïve Bayes that uses a multinomial distribution. • Gaussian Naïve Bayes: Naïve Bayes that uses a Gaussian distribution. Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 8
  • 9. Preparation of dataset Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 9
  • 10. Fitting Probability Distribution Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 10
  • 11. Sorting Data Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 11
  • 12. Calculate Priors Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 12
  • 13. Fit Distribution Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 13
  • 14. Summary Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 14
  • 15. Independent Conditional Probability Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 15
  • 16. Taking a sample Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 16
  • 17. Probability Scores Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 17
  • 18. Wrap Up Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 18
  • 19. Gaussian Naïve Bayes Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 19
  • 20. Lab Exercise • Use this source code and make a classification report which gives accuracy, precision, recall and F1-score Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 20
  • 21. Support Vector Machine Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 21
  • 22. SVM Objective • A training set, S, for an SVM is comprised of m samples. • The features, x, consist of real numbers and the classifications, y, must be -1 or 1. Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 22
  • 23. SVM Hyperplane • The SVM hyperlane is defined by the weight vector, w, and the bias, b, and is defined as: Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 23
  • 24. Example for 2 Feature • Hyperplane for two features can be written as: Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 24
  • 25. Libraries Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 25
  • 26. Data Clusters Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 26
  • 27. Data Clusters Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 27
  • 28. Prepare Datasets Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 28
  • 29. Learning Rate Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 29
  • 30. Learning Rate Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 30
  • 31. Draw Decision Boundary Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 31
  • 32. Plot Data Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 32
  • 33. Plot Data Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 33
  • 34. Test Classifier Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 34
  • 35. Test Classifier Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 35
  • 36. Output Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 36
  • 37. Lab Exercise • Create Confusion Matrix and classification report for SVM Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 37
  • 38. DSA 207 – Binary Classifier Faculty of Information Technology, Thai - Nichi Institute of Technology, Bangkok 38