The Fundamentals of Learning