[SciPy-Dev] Scipy test-failures and absolute tolerance-levels

Jamuar, Rohit rohit.jamuar at intel.com
Mon Oct 12 11:35:22 EDT 2015


Hi,

I'm one of the engineers from Python Scripting team at Intel Corporation. One of the things that we've been trying to achieve is to improve performance of numerical and scientific computation packages - numpy and scipy, for starters. While building Scipy(v0.16) with Intel Compiler, we see failures that are being caused by stringent absolute tolerance-levels. It also seems that you ran into such problems with these tests earlier<https://github.com/scipy/scipy/pull/4243>. These are some of the failing tests :

1.      test_j_roots() (from test_orthogonal in scipy.special) -

a.       vgq(rf(0.5, -0.5), ef(0.5, -0.5), wf(0.5, -0.5), -1., 1., 25, atol=1e-13) : If the tolerance is changed to 1e-12, the test passes

2.      test_js_roots() (from test_orthogonal in scipy.special) -

a.       vgq(rf(1, 0.5), ef(1, 0.5), wf(1, 0.5), 0., 1., 25, atol=1e-13) : ) : If the tolerance is changed to 1e-12, the test passes

b.      vgq(rf(68.9, 2.25), ef(68.9, 2.25), wf(68.9, 2.25), 0., 1., 5, atol=2e-14) ) : If the tolerance is changed to 2e-13, the test passes

I would really appreciate if you could share your rationale(s) behind altering tolerance-levels - does choosing a new tolerance-level depend on some theoretically defined range or is it chosen empirically? This information would help us better understand the ramifications of changing these values.

Thanks,
Rohit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20151012/d8152254/attachment.html>


More information about the SciPy-Dev mailing list