0% found this document useful (0 votes)
46 views9 pages

Machine Learning KNN

Uploaded by

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

Machine Learning KNN

Uploaded by

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

Machine Learning

Classification

By : Vedant Makwana
What is Machine
Learning ?

“Machine learning is
turning things (data)
into numbers and
finding patterns in
those numbers.”
What is K-Nearest
Neighbours (KNN)
Algorithm?
“The k-nearest neighbors (KNN)
algorithm is a machine learning
method that classifies data
points based on the majority
class of their nearest
neighbors.”
Choosing the Value
of K ?
The choice of K significantly influences the model's
performance. A small K can be sensitive to noise, while a large
K can lead to misclassification. Cross-validation techniques are
often used to determine the optimal K value.
Distance Metrics Used in
KNN
“KNN uses distance metrics, such as Euclidean,
Manhattan, or Minkowski distances, to measure the
similarity between instances. The choice of distance
metric is crucial and can significantly impact the
algorithm's performance.”

Euclidean Distance
Calculates straight-line distance

Manhattan Distance
Calculates distance along axis

Minkowski Distance
Generalization of Euclidean and Manhattan
Question
s:-

You might also like