Understanding Artificial Intelligence: How Machines Learn