Machine Learning KNN
Machine Learning KNN
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:-