Shape the classes and watch the neighbourhood vote.
Binary classification
92.9%accuracy
G→G20
G→R1
R→G2
R→R19
0 manual
Query (0.00, 0.00)Green vote: 0/7 (0.0%)Red: 7Prediction: red
Query explores votes · Add modes create training points · Move repositions manual points · generated samples and manual points remain independent.
Test performance
Confusion matrix
| Actual ↓ / Predicted → | Green | Red |
|---|---|---|
| Green | TP2047.6% | FN12.4% |
| Red | FP24.8% | TN1945.2% |
Green is the positive class · percentages sum to 100% of the test set.
Model selection
Accuracy versus K
Select a point to update K and the decision boundary.
K = 7 · majority voting Every neighbour contributes one equal vote.