Seol mar théacs é seo: Likelihood inference in nearest-neighbour classification models