Algorithm 2: (Few-shot AI corrector [83]: 1NN version. Deployment). Input: a data vector , the set’s centroid vector , matrices H, W, the number of clusters, k, cluster centroids , threshold, (or thresholds ), discriminant vectors, , . |
Associate the vector with the set if and with the set otherwise. If multiple thresholds are given then associate the vector with the set if and with the set otherwise.
Output: a label attributed to the vector .
|