KNN Class Prediction: Classify Unknown Sample

protocols

To evaluate an existing k-nearest-neighbors (KNN) classifier, run the KNN module with the classifier (model) file and a data set containing the unknown samples.

Before you begin

Classifying an unknown sample requires:

Step 1: KNN

To classify unknown samples using a previously built KNN classifier, run the KNN module. Use the model file parameter to specify the classifier (*.knn.model) and the test filename and test class filename parameters to specify the data set containing the unknown samples. The module creates a prediction results file (*.pred.odf) that lists each sample with its actual class ('unknown') and its predicted class.

learn more:
KNN

Step 2: View results

To view the prediction results file (*.pred.odf), use the PredictionResultsViewer module. The viewer lists each sample with its actual class ('unknown') and its predicted class.

Considerations
learn more:
PredictionResultsViewer