Minkowski distance between 2 points (X1, Y1) and (X2, Y2)
Hamming distance between categorical data: XOR
KNN on classification data
KNN on Regression data
Decision boundary in case of Classification data when using KNN Classifier and different K
Generate Classification data and split into train and test
Scale the input features X
Find the best value of K
Accuracy value for different K
Generate Regression data and split into train and test
Normalization of input features X
Find K that gives min value of RMSE
The output of RMSE for different values of K

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store