0% found this document useful (0 votes)
50 views3 pages

Assignmnet #1 of ML MSEE02173023 M.Sharif Naqvi

This document contains height, weight, t-shirt size, and Euclidean distance data for 17 customers. It also includes instructions for an assignment on the K Nearest Neighbors (KNN) algorithm. The instructions state that the KNN algorithm finds the k closest customers to a new customer based on Euclidean distance. It provides examples of running the algorithm with k=5, k=3, and k=1 to find the nearest neighbors. The document concludes by providing a new data point of height 161cm and weight 61kg to test the KNN algorithm on.

Uploaded by

Mohammad Sharif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views3 pages

Assignmnet #1 of ML MSEE02173023 M.Sharif Naqvi

This document contains height, weight, t-shirt size, and Euclidean distance data for 17 customers. It also includes instructions for an assignment on the K Nearest Neighbors (KNN) algorithm. The instructions state that the KNN algorithm finds the k closest customers to a new customer based on Euclidean distance. It provides examples of running the algorithm with k=5, k=3, and k=1 to find the nearest neighbors. The document concludes by providing a new data point of height 161cm and weight 61kg to test the KNN algorithm on.

Uploaded by

Mohammad Sharif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like