Basics of supervised learning