Height in (cms) weight in (kgs) T-shirt size Eucliden distance
158 58 M 4.24264068711929
158 59 M 3.60555127546399
158 63 M 3.60555127546399
160 59 M 2.23606797749979
160 60 M 1.4142135623731 1
163 60 M 2.23606797749979
163 61 M 2
160 64 L 3.16227766016838
163 64 L 3.60555127546399
165 61 L 4
165 62 L 4.12310562561766
165 65 L 5.65685424949238
168 62 L 7.07106781186548
168 63 L 7.28010988928052
168 66 L 8.60232526704263
170 63 L 9.21954445729289
170 64 L 9.48683298050514
170 68 L 11.4017542509914
Assignment 1: K Nearest Neighbors (KNN)
Minimum Euclidean distance
3 4
1 1
3
2 2
5
Neighbors (KNN)
comments
five T shirts in size of L
k=5( algorith works find five cusomers closest to new customer)
k=3 (algorithm works find three customers closest to new customer)
k=1 find which one is closest to new customer
New data height 161cm
weight 61kg
MSEE02173023 M.Sharif Naqvi Submitted to
DR Ghulam Abbas Sahib