Leastsq python. leastsq() is normally used for non-linear regression.