Re: [Numpy-discussion] Fast Reading of ASCII files

2011-12-13 Thread Chris Barker
On Tue, Dec 13, 2011 at 1:21 PM, Ralf Gommers wrote: > > genfromtxt sure looks close for an API >> > > This I don't agree with. It has a huge amount of keywords that just > confuse or intimidate a beginning user. There should be a dead simple > interface, even the loadtxt API is on the heavy side.

Re: [Numpy-discussion] ANN: Numexpr 2.0 released

2011-12-13 Thread srean
This is great news, I hope this gets included in the epd distribution soon. I had mailed a few questions about numexpr sometime ago. I am still curious about those. I have included the relevant parts below. In addition, I have another question. There was a numexpr branch that allows a "out=blah" p

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread David Verelst
Note that the pytables pro you are referring to is no longer behind a pay wall. Recently the project went through some changes and the pro versions disappeared. All pro features where merged into the main project and, are as a consequence, also available for free. Regards, David On 13/12/11 21

Re: [Numpy-discussion] Array min from argmin along an axis?

2011-12-13 Thread Robert Kern
On Tue, Dec 13, 2011 at 22:11, Ken Basye wrote: > Hi folks, >     I need an efficient way to get both the min and argmin of a 2-d > array along one axis.  It seemed to me that the way to do this was to > get the argmin and then use it to index into the array to get the min, > but I can't figure ou

Re: [Numpy-discussion] Array min from argmin along an axis?

2011-12-13 Thread Warren Weckesser
On Tue, Dec 13, 2011 at 4:11 PM, Ken Basye wrote: > Hi folks, > I need an efficient way to get both the min and argmin of a 2-d > array along one axis. It seemed to me that the way to do this was to > get the argmin and then use it to index into the array to get the min, > but I can't figure

[Numpy-discussion] Array min from argmin along an axis?

2011-12-13 Thread Ken Basye
Hi folks, I need an efficient way to get both the min and argmin of a 2-d array along one axis. It seemed to me that the way to do this was to get the argmin and then use it to index into the array to get the min, but I can't figure out how to do it. Here's my toy example: >>> x = np.ar

Re: [Numpy-discussion] Fast Reading of ASCII files

2011-12-13 Thread Wes McKinney
On Mon, Dec 12, 2011 at 12:34 PM, Warren Weckesser wrote: > > > On Mon, Dec 12, 2011 at 10:22 AM, Chris.Barker > wrote: >> >> On 12/11/11 8:40 AM, Ralf Gommers wrote: >> > On Wed, Dec 7, 2011 at 7:50 PM, Chris.Barker > >     * If we have a good, fast ascii (or unicode?) to array reader, >> > hope

Re: [Numpy-discussion] Fast Reading of ASCII files

2011-12-13 Thread Ralf Gommers
On Tue, Dec 13, 2011 at 10:07 PM, Chris Barker wrote: > On Tue, Dec 13, 2011 at 11:29 AM, Bruce Southey wrote: > >> ** >> Reading data is hard and writing code that suits the diversity in the >> Numerical Python community is even harder! >> >> > yup > > Both loadtxt and genfromtxt functions (other

Re: [Numpy-discussion] Fast Reading of ASCII files

2011-12-13 Thread Chris Barker
On Tue, Dec 13, 2011 at 11:29 AM, Bruce Southey wrote: > ** > Reading data is hard and writing code that suits the diversity in the > Numerical Python community is even harder! > > yup Both loadtxt and genfromtxt functions (other functions are perhaps less > important) perhaps need an upgrade to

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 63, Issue 43

2011-12-13 Thread Konrad Banachewicz
ty we could develop that could make > it fast -- then we are done. > > This actually mirrors exactly what we all usually recommend for python > development in general -- write it in Python, then, if it's really not fast > enough, write the bottle-neck in C. > > So where are t

Re: [Numpy-discussion] Moving to gcc 4.* for win32 installers ?

2011-12-13 Thread Ralf Gommers
On Sun, Oct 30, 2011 at 12:18 PM, David Cournapeau wrote: > On Thu, Oct 27, 2011 at 5:19 PM, Ralf Gommers > wrote: > > Hi David, > > > > On Thu, Oct 27, 2011 at 3:02 PM, David Cournapeau > > wrote: > >> > >> Hi, > >> > >> I was wondering if we could finally move to a more recent version of > >>

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread Eraldo Pomponi
Hi Fred, Pandas has a nice interface to PyTable if you still need it: http://pandas.sourceforge.net/io.html#hdf5-pytables However, my intention was just to point you to pandas because it is really a powerful tool if you need to deal with tabular heterogenic data. It is also important to notice t

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread ferreirafm
Hi Eraldo, Thanks for your suggestion. I was using pytables but give up after known that some very useful capabilities are sold as a professional package. However, it still useful to many printing and data manipulation and, also, it can handle extremely large datasets (which is not my case.). Reg

Re: [Numpy-discussion] Fast Reading of ASCII files

2011-12-13 Thread Bruce Southey
On 12/13/2011 12:08 PM, Chris Barker wrote: NOTE: Let's keep this on the list. On Tue, Dec 13, 2011 at 9:19 AM, denis > wrote: Chris, unified, consistent save / load is a nice goal 1) header lines with date, pwd etc.: "where'd this come from ?"

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread Eraldo Pomponi
Hi Fred, I would suggest you to have a look at pandas (http://pandas.sourceforge.net/) . It was really helpful for me. It seems well suited for the type of data that you are working with. It has nice "brodcasting" capabilities to apply numpy functions to a set column. http://pandas.sourceforge.net

Re: [Numpy-discussion] Apparently non-deterministic behaviour of complex array multiplication

2011-12-13 Thread kneil
Hi Olivier, Sorry for the late reply - I have been on travel. I have encountered the error in two separate cases; when I was using numpy arrays, and when I was using numpy matrices. In the case of a numpy array (Y), the operation is: dot(Y,Y.conj().transpose()) and in the case of a matrix, wit

Re: [Numpy-discussion] Fast Reading of ASCII files

2011-12-13 Thread Chris Barker
NOTE: Let's keep this on the list. On Tue, Dec 13, 2011 at 9:19 AM, denis wrote: > Chris, > unified, consistent save / load is a nice goal > > 1) header lines with date, pwd etc.: "where'd this come from ?" > ># (5, 5) svm.py bz/py/ml/svm 2011-12-13 Dec 11:56 -- automatic ># 80.6 %

[Numpy-discussion] NumPy book review copies

2011-12-13 Thread Jitesh Y. Gawali
Hi, As a part of our reviewing program, we are giving away limited number of copies (print & electronic) of our recent publication NumPy 1.5 Beginner's Guide to people interested in reviewing the book. You ne