k-NN Implementation Steps: 6 to 9
This lesson will continue to familiarize you with the implementation steps (6-9) of the k-nearest neighbor method.
We'll cover the following
6) Set algorithm
Assign and configure the k-NN algorithm to an initial number of neighbors. The algorithm is then matched to reflect the default number for this algorithm (5). Note that setting k
to an uneven number helps eliminate the possibility of a prediction stalemate in the case of a binary prediction.
Get hands-on with 1400+ tech skills courses.