Question

6. (Programming) You need to implement the kNN algorithm as in the slides. The data we use for binary classification tasks is the UCI a4a data.

Fig: 1