Machine Learning, Gradient Descent, Programming.
relatively easy to wrap your mind around gradient_one_input(). By contrast, gradient_multiple_inputs() is harder to grok. In particular, the averaging operation is hard to spot, because it’s muddled by a matrix multiplication. If you glance at the code in the two functions, you see that they look