How can I pass a positional argument to an optional argument in python functions?
How can I pass a positional argument to an optional argument in python functions? Question: I am writing a gradient descent function for linear regression and want to include a default initial guess of parameters as a numpy zero array whose length is determined by the shape of an input 2D array. I tried writing …