Python notebooks for kNN Tutorial paper available here https://arxiv.org/abs/2004.04523:
kNN-Basic
: Code for a basic k-NN classifier inscikit-learn
.kNN-Correlation
: How to use correlation as the k-NN metricscikit-learn
.kNN-Cosine
: How to use Cosine as the k-NN metric inscikit-learn
. Using Cosine similarity for text classification.kNN-DTW
: Using thetslearn
library for time-series classification using DTW.kNN-Speedup
: Testing thescikit-learn
speedup mechanisms (kd_tree
andball_tree
) on four datasets. Requires the four datasets and apy
filekNNDataLoader.py
to run (all available in this repo).kNN-Annoy
: Testing the impact of usingannoy
for speedup.annoy
provides code for Approximate Nearest Neighbour that may not be as accurate as full k-NN. RequireskNNAnnoy.py
that contains some wrapper code forannoy
. Also requires the four datasets and apy
filekNNDataLoader.py
to run (all available in this repo).kNN-PCA
: Some code to use PCA to estimate the intrinsic dimension of the four datasets. RequireskNNDataLoader.py
and the data files.kNN-InstSel
: An assessment of two instance selection algorithms (CNN and CRR) on three datasets. RequireskNNEdit.py
that containst basic implementations of the two algorithms. RequireskNNDataLoader.py
and the data files.