Before we actually start with writing a nearest neighbor classifier, we need to think about the data, i.e. the learnset. We will use the "iris" dataset provided by the datasets of the sklearn module.
The data set consists of 50 samples from each of three species of Iris
Four features were measured from each sample: the length and the width of the sepals and petals, in centimetres.
Iris Versicolor
Iris Virginica
Iris Setosa
petal
petal
sepal