How does artificial intelligence manage to produce reliable outputs? Stochastic gradient descent has the answer!