On 10/28/2012 09:15 PM, Andreas Mueller wrote: > On 10/28/2012 09:10 PM, Lars Buitinck wrote: >> 2012/10/28 Andreas Mueller <[email protected]>: >>> In the SVM I get >>> File "mtrand.pyx", line 868, in mtrand.RandomState.randint >>> (numpy/random/mtrand/mtrand.c:5921) >>> OverflowError: Python int too large to convert to C long >>> >>> Can others reproduce? >>> I guess the SVM is a 32bit/64bit issue. >> It took me quite a while to figure out the types here. Can you tell me >> what np.uintc(-1) is on your box? It should be 2**32-1. Are you on a >> 32-bit box, perhaps? >> > 4294967295Yes, I am. I think that means that ints are 32bit. > Is there an easy way to figure out what np.unitc(-1) is? > 2 ** 32 - 1 doesn't fit in an 32-bit int, so that would explain it, > wouldn't it? Sorry, thought unitc was the C-inferface. It is 4294967295, which is 2 ** 32 - 1, and doesn't fit in an int. If the random seed is a signed int (which it seems to be), it is weird that it works on 64bit, isn't it? I'll try to find the numpy code...
------------------------------------------------------------------------------ WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
