[SciPy-Dev] scipy.test() failures '0.9.0.dev6635'

Pauli Virtanen pav@iki...
Wed Jul 21 16:19:34 CDT 2010


Wed, 21 Jul 2010 21:43:16 +0200, Nils Wagner wrote:
[clip]
> ======================================================================
> FAIL: line-search Newton conjugate gradient optimization routine
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/optimize/tests/
test_optimize.py",
> line 177
> , in test_ncg
>      assert self.gradcalls == 18, self.gradcalls # 0.8.0
> AssertionError: 16
>      # Ensure that function call counts are 'known good';
> these are from
>      # Scipy 0.7.0. Don't allow them to increase. assert self.funccalls
>      == 7, self.funccalls
>>>  assert self.gradcalls == 18, self.gradcalls # 0.8.0
>      #assert self.gradcalls == 22, self.gradcalls # 0.7.0

It seems that the details of how these optimization algorithms perform is 
sensitive to numerical noise. On my compiler/platform combination, the 
above does take the 18 iterations.

I guess I'll need to pull this test back, or make it more relaxed.

-- 
Pauli Virtanen



More information about the SciPy-Dev mailing list