[Numpy-discussion] nan result from np.linalg.lstsq()

Pauli Virtanen pav at iki.fi
Mon Oct 29 05:36:16 EDT 2012


Larry Paltrow <larry.paltrow <at> gmail.com> writes:
[clip]
> np.all(~np.isnan(data))
> >>> False
> 
> Seems to be all non-nan

No, it means you have NaNs in your data.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list