Deep learning: The mechanics of magic