If $d_{i}$ ranks in the $i$th place, then the distance $d_{i}$ corresponding instance is called the $i$th nearest neighbor $NN_i(x)$, and its label is noted as $y_i(x)$. Finally the prediction label $\widehat{y}$
If $d_{i}$ ranks in the $i$th place, then the distance $d_{i}$ corresponding instance is called the $i$th nearest neighbor $NN_i(x)$, and its label is noted as $y_i(x)$. Finally the prediction label $\widehat{y}$