Can anyone provide an example of providing a Jacobian to a least squares function in scipy?
I can’t figure out the method signature they want – they say it should be a function, yet it’s very hard to figure out what input parameters in what order this function should accept.
Here’s the exponential decay fitting that I got to work with this:
If I wanted to use
col_deriv=0, I think that I would have to basically take the transpose of what I return with dfunc. You’re quite right though: the documentation on this isn’t so great.