Tim Peters <t...@python.org> added the comment:

Raymond, I'd say scaling is vital (to prevent spurious infinities), but 
complications beyond that are questionable, slowing things down for an 
improvement in accuracy that may be of no actual benefit.

Note that your original "simple homework problems for kids to machine learning 
and computer vision" doesn't include cases where good-to-the-last-bit accuracy 
is important, but at least in machine learning and computer vision apps 
primitives may be called an enormous number of times - "speed matters" to them.

Perhaps add an optional "summer" argument defaulting to __builtins__.sum?  Then 
the user who wants to pay more for tighter error bounds can pass in whatever 
they like, from a raw Kahan summer, through one of its improvements, to 
math.fsum.  There just isn't a "one size fits all" answer.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33089>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to