[Scipy-tickets] [SciPy] #1551: Distribution fit with more than one fixed parameter does not work

SciPy Trac scipy-tickets@scipy....
Thu Nov 3 09:23:38 CDT 2011


#1551: Distribution fit with more than one fixed parameter does not work
-------------------------+--------------------------------------------------
 Reporter:  pbrod        |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  0.11.0  
Component:  scipy.stats  |     Version:  devel   
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by josefpktd):

 Thanks Per

 I had added a test for f1 and floc but not fscale, which looks like
 created a wrong x0  but didn't raise an exception.

 I think the entire method is too complicated, and it's very difficult to
 figure out what is going on. The method would need direct unittests,
 instead of relying on the indirect tests through fit.

 I think instead of keeping the del in the loop, we could build xo in the
 else, something like (not tested)

 {{{
 if kwds.has_key(key):
     fixedn.append(n)
     args[n] = kwds[key]
 else:
     x0_new.append(x0[n])

 x0 = x0_new
 }}}

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


More information about the Scipy-tickets mailing list