The Architecture of Learning: From Statistics to Intelligence