Learning in Humans and Machines