For the latest version of JMP Help, visit JMP.com/help.

The K Nearest Neighbors Report
The Model Selection report displays a solution path plot across K based on the Misclassification Rate for categorical responses or the RMSE for continuous responses. By default, the slider is placed on the value of K that corresponds to the best performing model. You can drag the slider to change the value of K in the report.
The statistics reported depend on the modeling type of the response. Each row in the summary tables corresponds to a model defined by k nearest neighbors, where K ranges from one to the value that you specified as Number of Neighbors, K in the launch window.
Continuous Responses
An asterisk marks the model for the value of K that has the smallest RMSE. The report for a continuous response contains the following columns:
Number of nearest neighbors used in the model. K ranges from 1 to the Number of Neighbors, K that you specified in the launch window.
Categorical Responses
An asterisk marks the model for the value of K that has the smallest misclassification rate. The report for a categorical response contains the following columns:
Number of nearest neighbors used in the model. K ranges from 1 to the Number of Neighbors, K that you specified in the launch window.
By default, a confusion matrix is shown for the model with the smallest Misclassification Rate. If there are ties for the smallest misclassification rate, a confusion matrix is shown for the model with the smallest K. If you use validation, confusion matrices for the validation and test sets appear. A confusion matrix is a two-way classification of actual and predicted responses. Use the confusion matrices and the misclassification rates to evaluate your model.
Tip: If you change the position of the slider in the solution path plot, an additional Confusion Matrix is displayed for the chosen value of K. Use the additional confusion matrices to compare an alternative model to the default best model.
By default, a mosaic plot is shown for the model with the smallest Misclassification Rate. If there are ties for the smallest misclassification rate, a mosaic plot is shown for the model with the smallest K. A mosaic plot is a stacked bar chart where each segment is proportional to its group’s frequency count. For more information about mosaic plots, see Mosaic Plot in the Basic Analysis book. If you use validation, mosaic plots for the validation and test sets are shown.

Help created on 3/19/2020