Re: [Numpy-discussion] Using dtype=object

2011-11-15 Thread Stéfan van der Walt
On Mon, Nov 14, 2011 at 9:08 PM, Nathan Faggian wrote: > I am interested in the use of numpy with native python objects, like so: > > In [91]: import collections > In [92]: testContainer = collections.namedtuple('testContainer', 'att1 > att2 att3') > In [93]: test1 = testContainer(1, 2, 3) > In [9

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Bruce Southey
On Tue, Nov 15, 2011 at 11:57 AM, Robert Kern wrote: > On Tue, Nov 15, 2011 at 16:55, Gael Varoquaux > wrote: >> On Tue, Nov 15, 2011 at 05:46:52PM +0100, Andreas Müller wrote: >>>    My question was more along the lines of "why doesn't numpy do the online >>>    algorithm". >> >> It's probably a

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 07:03 PM, Gael Varoquaux wrote: > On Tue, Nov 15, 2011 at 05:57:14PM +, Robert Kern wrote: >> Actually, last time I suggested it, it was brought up that the online >> algorithms can be worse numerically. I'll try to find the thread. > Indeed, especially for smallish datasets where

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Gael Varoquaux
On Tue, Nov 15, 2011 at 05:57:14PM +, Robert Kern wrote: > Actually, last time I suggested it, it was brought up that the online > algorithms can be worse numerically. I'll try to find the thread. Indeed, especially for smallish datasets where the memory overhead is not an issue. I think that

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Robert Kern
On Tue, Nov 15, 2011 at 16:55, Gael Varoquaux wrote: > On Tue, Nov 15, 2011 at 05:46:52PM +0100, Andreas Müller wrote: >>    My question was more along the lines of "why doesn't numpy do the online >>    algorithm". > > It's probably a matter of nobody having had the time and the urge to code > it

Re: [Numpy-discussion] dedicated function for resize with averaging or rebin 2d arrays?

2011-11-15 Thread Chris.Barker
On 11/14/11 2:02 PM, Andrea Zonca wrote: On Mon, Nov 14, 2011 at 09:24, Chris.Barker wrote: On 11/11/11 8:28 PM, Craig Yoshioka wrote: I once wrote a generic n-dimensional binning routine in C that I could find if anyone is interested in integrating it into numpy... it didn't do size increases

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 06:02 PM, Warren Weckesser wrote: On Tue, Nov 15, 2011 at 10:48 AM, Andreas Müller mailto:amuel...@ais.uni-bonn.de>> wrote: On 11/15/2011 05:46 PM, Andreas Müller wrote: On 11/15/2011 04:28 PM, Bruce Southey wrote: On 11/14/2011 10:05 AM, Andreas Müller wrote:

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Warren Weckesser
On Tue, Nov 15, 2011 at 10:48 AM, Andreas Müller wrote: > ** > On 11/15/2011 05:46 PM, Andreas Müller wrote: > > On 11/15/2011 04:28 PM, Bruce Southey wrote: > > On 11/14/2011 10:05 AM, Andreas Müller wrote: > > On 11/14/2011 04:23 PM, David Cournapeau wrote: > > On Mon, Nov 14, 2011 at 12:46 PM,

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Gael Varoquaux
On Tue, Nov 15, 2011 at 05:46:52PM +0100, Andreas Müller wrote: >My question was more along the lines of "why doesn't numpy do the online >algorithm". It's probably a matter of nobody having had the time and the urge to code it, _and_ do all the extra steps necessary to integrate to the co

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 05:46 PM, Andreas Müller wrote: On 11/15/2011 04:28 PM, Bruce Southey wrote: On 11/14/2011 10:05 AM, Andreas Müller wrote: On 11/14/2011 04:23 PM, David Cournapeau wrote: On Mon, Nov 14, 2011 at 12:46 PM, Andreas Müller wrote: Hi everybody. When I did some normalization using

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 04:28 PM, Bruce Southey wrote: On 11/14/2011 10:05 AM, Andreas Müller wrote: On 11/14/2011 04:23 PM, David Cournapeau wrote: On Mon, Nov 14, 2011 at 12:46 PM, Andreas Müller wrote: Hi everybody. When I did some normalization using numpy, I noticed that numpy.std uses more ram

Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-15 Thread MACKEITH Andrew
From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Olivier Delalleau Sent: Tuesday, November 15, 2011 10:02 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is 2011/11/15 MA

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Bruce Southey
On 11/14/2011 10:05 AM, Andreas Müller wrote: On 11/14/2011 04:23 PM, David Cournapeau wrote: On Mon, Nov 14, 2011 at 12:46 PM, Andreas Müller wrote: Hi everybody. When I did some normalization using numpy, I noticed that numpy.std uses more ram than I was expecting. A quick google search ga

Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-15 Thread Olivier Delalleau
2011/11/15 MACKEITH Andrew > *From:* numpy-discussion-boun...@scipy.org [mailto: > numpy-discussion-boun...@scipy.org] *On Behalf Of *Olivier Delalleau > *Sent:* Tuesday, November 15, 2011 7:03 AM > *To:* Discussion of Numerical Python > *Subject:* Re: [Numpy-discussion] numpy.int32 is not subc

Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-15 Thread MACKEITH Andrew
From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Olivier Delalleau Sent: Tuesday, November 15, 2011 7:03 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is 2011/11/14 Robert

Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-15 Thread Olivier Delalleau
2011/11/14 Robert Kern > On Mon, Nov 14, 2011 at 20:18, MACKEITH Andrew > wrote: > > Could someone explain this? > > > > An instance of numpy.int32 is not an instance of int or numpy.int. > > An instance of numpy.int64 is an instance of int and numpy.int. > > > > I don't know if it is a bug in m

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-15 Thread Matthew Brett
Hi, On Tue, Nov 15, 2011 at 12:51 AM, David Cournapeau wrote: > On Tue, Nov 15, 2011 at 6:22 AM, Matthew Brett > wrote: >> Hi, >> >> On Mon, Nov 14, 2011 at 10:08 PM, David Cournapeau >> wrote: >>> On Mon, Nov 14, 2011 at 9:01 PM, Matthew Brett >>> wrote: Hi, On Sun, Nov 13,

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-15 Thread David Cournapeau
On Tue, Nov 15, 2011 at 6:22 AM, Matthew Brett wrote: > Hi, > > On Mon, Nov 14, 2011 at 10:08 PM, David Cournapeau wrote: >> On Mon, Nov 14, 2011 at 9:01 PM, Matthew Brett >> wrote: >>> Hi, >>> >>> On Sun, Nov 13, 2011 at 5:03 PM, Charles R Harris >>> wrote: On Sun, Nov 13, 2011