Re: [Numpy-discussion] numpy 1.1.1 fails because of missing md5

2008-09-03 Thread Charles Doutriaux
Thanks for spotting the origin, I'll pass this along to our user maybe they'll be able to figure out how to build python w/o openssl C. Robert Kern wrote: > On Wed, Sep 3, 2008 at 10:39, Charles Doutriaux <[EMAIL PROTECTED]> wrote: > >> Hi Robert, >> >> The first email got intercepted because

Re: [Numpy-discussion] at my wits end over an error message...

2008-09-03 Thread Robert Kern
On Sat, Aug 30, 2008 at 22:10, Zachary Pincus <[EMAIL PROTECTED]> wrote: > Hi Alan, > >> Traceback (most recent call last): >> File "/usr/local/lib/python2.5/site-packages/enthought.traits-2.0.4- >> py2.5-linux-i686.egg/enthought/traits/trait_notifiers.py", line 325, >> in call_1 >>self.handle

Re: [Numpy-discussion] numpy 1.1.1 fails because of missing md5

2008-09-03 Thread Robert Kern
On Wed, Sep 3, 2008 at 10:39, Charles Doutriaux <[EMAIL PROTECTED]> wrote: > Hi Robert, > > The first email got intercepted because the attachment was too big (awaits > moderator), so i compressed the log and I resend this email. > > I'm attaching my Python build log, can you spot anything? It "see

Re: [Numpy-discussion] 1.2.0rc1 tagged!

2008-09-03 Thread Jarrod Millman
On Wed, Sep 3, 2008 at 10:06 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > So the two formatting tests fail, as David warned. > But they are known to fail on Windows, and there > is no msg to that effect. Might one be added? Absolutely, we will make sure to add a message to that effect and possib

Re: [Numpy-discussion] 1.2.0rc1 tagged!

2008-09-03 Thread Alan G Isaac
So the two formatting tests fail, as David warned. But they are known to fail on Windows, and there is no msg to that effect. Might one be added? Alan Isaac Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for

Re: [Numpy-discussion] numpy 1.1.1 fails because of missing md5

2008-09-03 Thread Charles Doutriaux
Hi Robert, The first email got intercepted because the attachment was too big (awaits moderator), so i compressed the log and I resend this email. I'm attaching my Python build log, can you spot anything? It "seems" like md5 is built, i get a very similar log on my machine and i have a worki

Re: [Numpy-discussion] distance matrix and (weighted) p-norm

2008-09-03 Thread Emanuele Olivetti
David Cournapeau wrote: > FWIW, distance is deemed to move to a separate package, because distance > computation is useful in other contexts than clustering. > > Excellent. I was thinking about something similar. I'll have a look to the separate package. Please drop an email to this list when d

Re: [Numpy-discussion] distance matrix and (weighted) p-norm

2008-09-03 Thread David Cournapeau
Emanuele Olivetti wrote: > > Thanks for the pointer but the distance subpackage in cluster is about > the distance matrix of vectors in one set of vectors. So the resulting > matrix is symmetric. I need to compute distances between two > different sets of vectors (i.e. a non-symmetric distance matr

Re: [Numpy-discussion] distance matrix and (weighted) p-norm

2008-09-03 Thread Emanuele Olivetti
David Cournapeau wrote: > Emanuele Olivetti wrote: >> Hi, >> >> I'm trying to compute the distance matrix (weighted p-norm [*]) >> between two sets of vectors (data1 and data2). Example: >> > > You may want to look at scipy.cluster.distance, which has a bunch of > distance matrix implementation.

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
We used to care about memory when we were running on 32-bit platforms, but with the move to 64-bit, enabled by the current work, the issue is removed and I will probably be changing everything for more accuracy. Thanks Hanni 2008/9/3 David Cournapeau <[EMAIL PROTECTED]> > Hanni Ali wrote: > >

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
Oh ok, I shall have to find where I did that then. Thanks 2008/9/3 Matthieu Brucher <[EMAIL PROTECTED]> > By default, numpy uses float64, but you told it to use float32 ;) > > Matthieu > > 2008/9/3, Hanni Ali <[EMAIL PROTECTED]>: > > Also can you think of a way either dtype is always float64? I h

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread David Cournapeau
Hanni Ali wrote: > Understood, but I would generally be more concerned with accuracy than > memory? It is a tradeof: you can choose accuracy if you want, but by using float32, you are already kind of hinting that you care about memory and speed (otherwise, why not using double, which is the defaul

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Matthieu Brucher
By default, numpy uses float64, but you told it to use float32 ;) Matthieu 2008/9/3, Hanni Ali <[EMAIL PROTECTED]>: > Also can you think of a way either dtype is always float64? I have a lot of > functions and to add dtype='float64' would require *loads* of testing, > whereas if I can set it cent

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread David Cournapeau
Hanni Ali wrote: > I'm afraid the matrix is not available anywhere and I would not be > able to make it available. > Forget it, Sebastian is right. I was confused by the range of the error, but the error between two floating point numbers is indeed 1e-7 for float on most runtimes (FLT_EPS in C, wh

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
Understood, but I would generally be more concerned with accuracy than memory? 2008/9/3 Matthieu Brucher <[EMAIL PROTECTED]> > It should never do some black magic without telling you. > People are concerned by memory consumption, so if you use more memory > than what you think, you can encounter

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
Also can you think of a way either dtype is always float64? I have a lot of functions and to add dtype='float64' would require *loads* of testing, whereas if I can set it centrally on the matrix or in the environment that would be so much easier. Hanni 2008/9/3 Hanni Ali <[EMAIL PROTECTED]> > S

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Matthieu Brucher
It should never do some black magic without telling you. People are concerned by memory consumption, so if you use more memory than what you think, you can encounter bugs. Least surprise is always better ;) Matthieu 2008/9/3, Hanni Ali <[EMAIL PROTECTED]>: > Sebastian you legend, that seems to be

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
Sebastian you legend, that seems to be it. Thank you very much. >>> matrix.mean(dtype='float64') 0.41582015156745911 What seems odd is that numpy doesn't do this on it's own... 2008/9/3 Sebastian Stephan Berg <[EMAIL PROTECTED]> > Hi, > > just guessing here. But numarray seems to calculate t

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
I'm afraid the matrix is not available anywhere and I would not be able to make it available. However I can demonstrate by simply generating a random number and filling a 10x10 matrix with it. I generated a random number in numpy and used that to do the same exercise in numarray. In numpy: >>>

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Sebastian Stephan Berg
Hi, just guessing here. But numarray seems to calculate the result in a bigger dataype, while numpy uses float32 which is the input arrays size (at least I thought so, trying it confused me right now ...). In any case, maybe the difference will be gone if you use .mean(dtype='float64') (or whateve

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread David Cournapeau
Hanni Ali wrote: > Hi Matthieu, > > I thought as much, regarding the computations, but was just presenting > the information. Is your matrix available somewhere so that we can reproduce the problem ? Off-hand, I can't see any explanation, but I am not familiar with numarray, so maybe I am missing

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
Hi Matthieu, I thought as much, regarding the computations, but was just presenting the information. Thanks for the set_printoptions but it doesn't seem to apply when accessing a specific item: >>> numpy.set_printoptions(precision=12) >>> port_result.agg_matrix[0] array([ 2.11549568e+08,

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Matthieu Brucher
Hi, I can't help you with the first issues, but the display has nothing to do with the quality of the computation. Numpy only prints a part of a float value, but fir the computations, it obviously uses the correct value. All this can be parametrized by using set_printoptions(). Matthieu 2008/9/3

[Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-03 Thread Hanni Ali
Hi, I have encountered a worrying problem, during migration of software from numarray to numpy, perhaps someone could help me determine how this could be addressed. I have a large array or values 1 long 12 items per line. The matrix contains floats, dtype=float32 in numpy and type=Float32 in