[SciPy-user] singular matrix linalg.basic.LinAlgError in optimize.leastsq

Taro Sato nomo17k at gmail.com
Wed Apr 26 12:03:41 EDT 2006


On 4/24/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
> Taro Sato wrote:
> > I frequently use optimize.leastsq, and there is this annoying tendency
> > for the routine to throw an exception when the resulting covariant
> > matrix ends up singular.  The error message follows.
> >
> > Basically, I need full_output=1 to just obtain a stopping condition in
> > the output parameter ier, but the way the code prepare the full
> > output, it also tries to compute covariant matrix.  The problem is
> > when it fails, it throws an exception which is not handled within
> > minpack.py:
> >
>
> This is a good suggestion.  Unfortunately, this year has been very busy
> for me and I have not been able to spend much time on SciPy (most of my
> Python time has been spent on NumPy).
>
> Fortunately, other SciPy developers have helped but we could use more
> who can make these kinds of changes.
>
> Think about submitting a patch (please at least enter a ticket on the
> Trac page for SciPy).   This can help.
>
> -Travis


Submitted a patch and entered a ticket on the Trac page.  Thanks.

Taro


More information about the SciPy-User mailing list