Machine Learning, Gradient Descent, Programming.
The inner dimensions of X and E are different, so you cannot multiply them. On the other hand, if you transpose X, the dimensions fit just right: That’s what gradient_multiple_inputs() does. It transposes X and multiplies it by the errors: Let’s take a close look at the result. By the rules of