Step by step instruction using k-NN (from scratch) in Python on the infamous Wine Quality Repository found on UCI: https://archive.ics.uci.edu/ml/datasets/Wine So what is k-NN? According to Wikipedia, the k-NN algorithm is a non-parametric method used for classification and regression. For classification, k-NN works by selecting specific examples closest to the…