fitting.curve_fit

fitting.curve_fit(*args)

A convenience wrapper for scipy.optimize.curve_fit(), so you do not have to import scipy in addition.

Parameters:args (mixed) – Arguments that are directly passed to scipy.optimize.curve_fit().
Returns:Fitting results and covariance matrix (popt, pcov).