Table 2.
The testing stage of LWNN.
| Input: the testing dataset. |
| Procedure: |
| For each data point x⃗, |
| (1) Compute the weighted distances between x⃗ and each of the class centroid by Equation (2). |
| (2) Classify x⃗ as the class whose centroid has the minimum weighted distance to x⃗. |