lisa-lab/pylearn2 — pull request #1054 by madisonmay (2014-07-30 21:52:04+00:00)
Title: Improve memory usage when checking for NaNs

As suggested in issue #1053 by @cancan101.

> Currently, this appears in numerous places: np.any(np.isnan(X)). This requires creating a large array of booleans matching the shape of X. More efficient would be: np.isnan(np.min(X)).

> See: http://stackoverflow.com/questions/6736590/fast-check-for-nan-in-numpy