A visual introduction to machine learning