Skip to content
Snippets Groups Projects
Commit 71953c49 authored by Fabian Pedregosa's avatar Fabian Pedregosa Committed by Lars Buitinck
Browse files

Safer assert_all_finite.

Check for Inf/NaN when X.sum() is not finite. This avoids the risk of
false positives because of sum overflow while remaining performant for
the usual case where all values are finite.

This idea is taken from:

   https://github.com/tecki/numpy/commit/57167f7c02b02bfb49204233eaee0f289ad37c92
parent 55269519
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment