K Nearest Neighbors makes predictions for a sample by finding the k nearest samples and averaging their responses.
K Nearest Neighbors makes predictions for a sample by finding the k nearest samples and assigning the most represented class among them.
Warning: this algorithm requires storing the entire training data into the model. This will lead to a very large model if the data is larger than a few hundred lines. Predictions will also be slow.