CSE 5523: �Nearest Neighbor
Important for this week
2
Interested in the growing field of Autonomous Vehicles (AV)? Want to transform a Chevy Bolt into a fully autonomous vehicle?
We have opportunities for CSE, MAE and ECE Students!
Gain hands-on technical skills while also networking with industry professionals at SAE & GM!
Website
Interest Survey
Interest in the Buckeye AutoDrive Team?
Today
Review
Nearest neighbor
5
6
Empirical risk minimization (ERM)
7
Questions?
Today
Review
Nearest neighbor
Nearest neighbor
10
Which COLOR?
Why?
Nearest neighbor
11
Which COLOR?
Why?
Nearest neighbor
12
Which COLOR?
Why?
Nearest neighbor
13
Which COLOR?
Why?
Nearest neighbor
14
Which COLOR?
Why?
Nearest neighbor
15
Nearest neighbor
16
Nearest neighbor
17
Distance
18
Nearest neighbor (Euclidean distance)
19
Nearest neighbor (Manhattan distance)
20
Nearest neighbor
21
Nearest neighbor (Euclidean distance)
22
Questions?
K-Nearest neighbors (KNN)
24
KNN (Euclidean distance)
25
K=1
KNN (Euclidean distance)
26
K=3
KNN (Euclidean distance)
27
K=5
KNN (Euclidean distance)
28
K=N
KNN
29
Question
30
KNN (Euclidean distance) for multiple classes
31
K=5
KNN (Euclidean distance) for multiple classes
32
K=3
Variants of KNN: Rules
33
Variants of KNN: Distances
34
Variants of KNN: Distances
35
a
b
Commonly-used tricks for pre-processing
36
Today
Review
Nearest neighbor
Properties
38
Assuming no duplicated data input!
Properties
Properties
40
What is the effect of K?
41
What is the effect of K?
42
How to choose K?
43
Leave-one-out Cross-validation
44
Pros and Cons
45
Okapi un animal misterios Okapia johnstoni - zooland.ro
Questions?
Curse of dimensionality
47
Higher dimension, hard to find neighbors!
Most uniformly distributed data are outside the circle
Curse of dimensionality
48
A
B
Feature learning, dimensionality reduction
49
Questions?
Theoretical guarantee: Loss lower bound
51
Theoretical guarantee: NN vs. Bayes optimal
52
Summary
53