Re: [Numpy-discussion] what is the best way to do a statistical mode operation?

2010-10-03 Thread josef . pktd
On Sun, Oct 3, 2010 at 5:56 PM, Gordon Wrigley wrote: >> How many point do you have in np.unique(array) ? > 43 currently > > On Sun, Oct 3, 2010 at 11:55 PM, wrote: >> >> On Sun, Oct 3, 2010 at 8:41 AM, Gordon Wrigley wrote: >> > I have an array of uint8's that has a shape of X*Y*Z*8, I would li

Re: [Numpy-discussion] what is the best way to do a statistical mode operation?

2010-10-03 Thread Gordon Wrigley
> How many point do you have in np.unique(array) ? 43 currently On Sun, Oct 3, 2010 at 11:55 PM, wrote: > On Sun, Oct 3, 2010 at 8:41 AM, Gordon Wrigley wrote: > > I have an array of uint8's that has a shape of X*Y*Z*8, I would like to > > calculate modes along the 8 axis so that I end up with

Re: [Numpy-discussion] datarray repositories have diverged

2010-10-03 Thread Fernando Perez
On Fri, Oct 1, 2010 at 2:45 PM, Rob Speer wrote: > > Does anyone know if it's possible to change the "forked from" location > of my branch to be Fernando's branch? The easiest way (I think) is: - ensure your *local* repo is 100% complete and in good shape. - delete your github repo. - re-fork on

Re: [Numpy-discussion] what is the best way to do a statistical mode operation?

2010-10-03 Thread Warren Weckesser
On Sun, Oct 3, 2010 at 7:41 AM, Gordon Wrigley wrote: > I have an array of uint8's that has a shape of X*Y*Z*8, I would like to > calculate modes along the 8 axis so that I end up with an array that has the > shape X*Y*Z and is full of modes. > I'm having problems finding a good way of doing this

Re: [Numpy-discussion] what is the best way to do a statistical mode operation?

2010-10-03 Thread josef . pktd
On Sun, Oct 3, 2010 at 8:41 AM, Gordon Wrigley wrote: > I have an array of uint8's that has a shape of X*Y*Z*8, I would like to > calculate modes along the 8 axis so that I end up with an array that has the > shape X*Y*Z and is full of modes. > I'm having problems finding a good way of doing this.

[Numpy-discussion] what is the best way to do a statistical mode operation?

2010-10-03 Thread Gordon Wrigley
I have an array of uint8's that has a shape of X*Y*Z*8, I would like to calculate modes along the 8 axis so that I end up with an array that has the shape X*Y*Z and is full of modes. I'm having problems finding a good way of doing this. My attempts at solving this using bincount or histogram produc