| Algorithm3. K-nearest neighbor (KNN) algorithm. |
|
Input: Label data set Pseudocode labeled unlabeled data set The parameter K in the KNN algorithm Process 1. for j = 1: u 2. for i = 1: l 3. Calculate the Euclidean distance between and 4. end 5. Sort the labelled data set in ascending order according to the distance 6. Select the first K data with tags, record their distance and tag information 7. for k = 1: K 8. 9. end 11. end 12. Get pseudo-labelled data set Outputs: |