"K-Nearest Neighbour" is the abbreviation for "K-Nearest Neighbour." It's a machine learning algorithm that's supervised. Both classification and regression problem statements can be solved using the approach. The sign 'K' represents the number of nearest neighbours to a new unknown variable that must be predicted or categorised.
During the training phase, the KNN algorithm simply stores the dataset, and when it receives new data, it classifies it into a category that is quite similar to the new data. Consider the following scenario: We have an image of a creature that looks like a cat or a dog, but we don't know whether it's a cat or a dog.