# A unified weighting framework for evaluating nearest neighbour classification

arXiv: https://arxiv.org/abs/2311.16872 · HTML: https://mlsanity.com/paper/2311.16872/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 4 of its 64 references that are in the map.
- First posted on arXiv 28 Nov 2023.

## Builds on (most cited first, 4 of 4)

- [Nearest Neighbor Machine Translation](https://mlsanity.com/paper/2010.00710/) (2020)
- [k-Nearest Neighbour Classifiers: 2nd Edition (with Python examples)](https://mlsanity.com/paper/2004.04523/) (2020)
- [Global optimization of Lipschitz functions](https://mlsanity.com/paper/1703.02628/) (2017)
- [Optimised one-class classification performance](https://mlsanity.com/paper/2102.02618/) (2021)

## Built on by (most cited first, 1 of 1)

- [Feature Subset Weighting for Distance-based Supervised Learning through Choquet Integration](https://mlsanity.com/paper/2504.00624/) (2025)

## Abstract (arXiv)

We present the first comprehensive and large-scale evaluation of classical (NN), fuzzy (FNN) and fuzzy rough (FRNN) nearest neighbour classification. We standardise existing proposals for nearest neighbour weighting with kernel functions, applied to the distance values and/or ranks of the nearest neighbours of a test instance. In particular, we show that the theoretically optimal Samworth weights converge to a kernel. Kernel functions are closely related to fuzzy negation operators, and we propose a new kernel based on Yager negation. We also consider various distance and scaling measures, which we show can be related to each other. Through a systematic series of experiments on 85 real-life classification datasets, we find that NN, FNN and FRNN all perform best with Boscovich distance, and that NN and FRNN perform best with a combination of Samworth rank- and distance-weights and scaling by the mean absolute deviation around the median (r1), the standard deviation (r2) or the semi-interquartile range (r∞^*), while FNN performs best with only Samworth distance-weights and r1- or r2-scaling. However, NN achieves comparable performance with Yager-frac12 distance-weights, which are simpler to implement than a combination of Samworth distance- and rank-weights. Finally, FRNN generally outperforms NN, which in turn performs systematically better than FNN.
