We can predict the future data from the prior knowledge which is also known as supervised learning.
STEPS
1 : select the number K of the neighbor.
2: calculate the euclidean distance of k number of neighbors.
3: Take the KNN as per the calculate euclidean distance .
4 : Among these K neighbor, count the number of data points in each category .
5 : Assign the new data points to the category for which the number of the neighbor is maximum .
#machinelearning
#KNN
#knearestneighbor
#learning
#datamining
#techniques
#classification
#easy
#solved
#example