Classification: Perceptron
Classification
2
Classification
3
Classification
4
Classification
5
Classification
6
Perceptron
7
Perceptron
8
Classification Boundary
9
Learning a Hyperplane for Classification
10
Learning a Hyperplane for Classification
11
Learning a Hyperplane for Classification
12
Perceptron Algorithm
13
Perceptron Algorithm: Illustration
14
Perceptron Algorithm: Illustration
15
Perceptron Algorithm: Illustration
16
Perceptron Algorithm: Illustration
17
Perceptron Algorithm: Illustration
18
Perceptron Algorithm: Illustration
19
Why Perceptron Updates Work ?
20
Diagram of Perceptron
21
Loss Function for Perceptron
22
Perceptron in Python
23
Perceptron in Python
24
Perceptron in Python
25
Perceptron in Python
26
Scikit-Learn for Perceptron
27
The Best Hyperplane Separator?
28
The Best Hyperplane Separator?
29
Support Vector Machine
Distance from a Line
31
32
33
34
35
Distance between Two Parallel Lines (1/2)
36
Distance between Two Parallel Lines (2/2)
37
Illustrative Example
38
Decision Making
39
The Key Insight in SVM: Introducing a Margin
40
Scaling to Simplify the Problem
41
Data Generation for Classification
42
Buffer zone
Optimization Formulation 1
43
The First Attempt
44
CVXPY 1
45
CVXPY 1
46
Outliers
47
Outliers
48
The Second Attempt
49
The Second Attempt
50
The Second Attempt
51
Expressed in a Matrix Form
52
CVXPY 2
53
Further Improvement
54
Maximize Margin
55
Support Vector Machine
56
In a More Compact Form
57
Scikit-learn
58
Lesson from SVM
59
Logistic Regression
Linear Classification: Logistic Regression
61
Using Distances
62
Using Distances
63
Using Distances
64
Using Distances
65
Using all Distances
66
Using all Distances
67
Using all Distances with Outliers
68
SVM
Logistic Regression
Sigmoid Function
69
Perceptron
SVM
Logistic regression
Sigmoid Function
70
Distance
71
Distance
72
Distance
73
Distance
74
Sigmoid Function
75
Goal: We Need to Fit 𝜔 to Data
76
Goal: We Need to Fit 𝜔 to Data
77
Logistic Regression using GD
78
Gradient Descent
79
Gradient Descent
80
Gradient Descent for Logistic Regression
81
Python Implementation
82
Python Implementation
83
Logistic Regression using CVXPY
84
Probabilistic Approach (or MLE)
85
Probabilistic Approach (or MLE)
86
CVXPY Implementation
87
In a More Compact Form
88
CVXPY Implementation
89
Logistic Regression using Scikit-Learn
90
Logistic Regression using Scikit-Learn
91
Cross-Entropy
92
Multiclass Classification
93
Multiclass Classification: One vs. One
94
Multiclass Classification: One vs. All (One vs. Rest)
95
Multiclass Classification: Softmax
96
One-Hot Encoding
97
Non-linear Classification
98
Classifying Non-linear Separable Data
99
Classifying Non-linear Separable Data
100
Classifying Non-linear Separable Data
101
Nonlinear Classification
102
Kernel
103
Selecting the Appropriate Kernel
104
Classifying Non-linear Separable Data
105
Classifying Non-linear Separable Data
106
Classifying Non-linear Separable Data
107
Non-linear Classification
108
Explicit Kernel
109
Non-linear Classification
110