k Selection Error Log

Figure 1. k Selection
Line chart with error rate on the horizontal axis and number of nearest neighbors on the vertical axis

Points on the chart display the error rate on the y-axis for the model with the number of nearest neighbors (k) on the x-axis. The model with 5 nearest neighbors produces the lowest error rate. Beyond 5 nearest neighbors, the error rate jumps dramatically, suggesting that the model quickly begins to include vehicles of the opposite type when using 6 or more neighbors.

Next