How do machines learn from data?