Research Article
Identification and Prediction of Chronic Diseases Using Machine Learning Approach
Algorithm 2
K-nearest neighbor algorithm.
Input: | Output: Class of | for do | Compute the distance | end for | Sort the distance in ascending order | Count the number of occurrences of each class among the -nearest neighbors | Assign the most frequent class to |
|