Scipy optimisation doesn’t seem to be able to fit correctly
I have two arrays of data, on which I need to fit a nonlinear curve. I am using scipy.optimize and it returns such odd results that when I plot it next to my data points, the curve looks completely wrong. I haven’t found anything useful on stackoverflow or youtube and this is my last resort.