Under the hood: The mathematics of AI