Introduction to machine learning: k-nearest neighbors | Synapse