Supervised learning and unsupervised learning