[Scipy-tickets] [SciPy] #1415: In curve_fit the full_output kw argument is passed twice to leastsq.

SciPy Trac scipy-tickets@scipy....
Mon Mar 28 14:48:15 CDT 2011


#1415: In curve_fit the full_output kw argument is passed twice to leastsq.
------------------------------------------------------+---------------------
 Reporter:  miha                                      |       Owner:  somebody
     Type:  defect                                    |      Status:  new     
 Priority:  normal                                    |   Milestone:          
Component:  scipy.optimize                            |     Version:  0.9.0   
 Keywords:  curve_fit, full_output, keyword argument  |  
------------------------------------------------------+---------------------
 According to
 [http://docs.scipy.org/doc/scipy-0.9.0/reference/generated/scipy.optimize.curve_fit.html#scipy.optimize.curve_fit
 documentation], curve_fit passes some of it's keyword arguments directly
 to leastsq. When you give curve_fit full_output kw argument, an exception
 is raised,

 {{{
 TypeError: leastsq() got multiple values for keyword argument
 'full_output'
 }}}

 The reason for this is that when inside curve_fit leastsq is called, it is
 allways explicitly called with full_output=1.

 And the second problem is that even when the bug above will be fixed, you
 will still not be able to get full output from curve_fit, because it
 currently ignores full_output argument - it always returns just (popt,
 pcov).

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1415>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list