On Fri, Nov 16, 2012 at 4:03 PM, Nelle Varoquaux <[email protected]> wrote: >> Hi Leon, >> When I run your script, I get no instances of NaN in the data. >> >> I wonder if it's a problem with storing the data as a npy file. I asked >> around last spring and everybody seemed to think that the format is >> compatible across platforms and numpy versions, but I may be wrong. Does >> anybody know? > > I think numpy relies on pickle for those. These are plateform dependant > (32bits vers 64bits), and python version dependant. Pickle is not a safe way > to store data, thought I never had problems on my personal computers. > Saving as txt is more reliable.
The NPY file format only uses pickle for object arrays, which this isn't. Otherwise, it records floats in standard IEEE-754 binary format with enough header information to reconstruct it portably across platforms. I see no NaNs, myself. -- Robert Kern ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
