…ost function, you may naturally wonder how the cost function is minimized — enter gradient descent. Gradient descent is an efficient optimization algorithm that attempts to find a local or global minima of a function. There are hundreds of explanations of gradient descent out there, so I won’t dwell on it for too l…