-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Enhancement : KNN #14
Comments
KNN - K Nearest NeighborKNN algorithm is mainly used to classify and predicting the values in Machine Learning. We can use it for Supervised Machine Learning problems(Labeled) such that Classification and Regression. KNN KNN is simply , Finding the K Nearest Neighbor of the data point and classifying the data points with maximum number of classes of the neighbors We can find the value of K by finding the mean of the error in each records and plotting as graph
Finding K -> Finding how many neighbors that we have to choose around the data point Value of k = less error rate Distance of the data points will be calculated in KNN using Minkowski distance. Based on Minkowski Distance metric, We gonna classify the data points. Manhattan DistanceThis is the distance between real vectors using sum of their absolute difference. Euclidean DistanceEuclidean distance is calculated as the square root of sum of the squared differences between a new point (x) & existing point y Hamming DistanceIt is used for categorical variables. If the value x and the value y are the same, the distance d will be equal to 0. Otherwise distance equal to 1 The above methods are used to find the distance and to finding the k closest neighbor of that particular data point. Thank you! |
Hey @sudharsansrini the content that you mentioned above looks really amazing and we could incorporate it in the main platform. I am pretty sure that writing this would have taken a good amount of time and i request you to make a PR for the same because otherwise it won't get counted as your contribution. Feel free to join our discord if you need any help with how to contribute and stuff like that. |
The below mentioned additions are required -
The text was updated successfully, but these errors were encountered: