Skip to content

📊 knn_classification.py

Performs a simple k‑NN classification on features extracted from a self-supervised model.

The number of neighbours defaults to the dataset's class count. The script prints the Top‑1 accuracy and stores predictions in evaluation_summary.csv when run through unsupervised_evaluator.py.