from the plotswe can see that the three classes seem to be relatively well separated using the sepal and petal measurements this means that machine learning model will likely be able to learn to separate them building your first modelk-nearest neighbors now we can start building the actual machine learning model there are many classification algorithms in scikit-learn that we could use here we will use -nearest neighbors classifierwhich is easy to understand building this model only consists of storing the training set to make prediction for new data pointthe algorithm finds the point in the training set that is closest to the new point then it assigns the label of this training point to the new data point introduction