Re: [Numpy-discussion] Decision tree-like algorithm on numpy arrays

2010-05-07 Thread Francesc Alted
A Friday 07 May 2010 08:18:44 Martin Raspaud escrigué: > Francesc Alted skrev: > > Hi Martin, > > [...] > > > and the output for my machine: > > > > result_array1: [4 2 4 ..., 1 3 4] 1.819 > > result_array2: [4 2 4 ..., 1 3 4] 0.308 > > > > which is a 6x speed-up. I suppose this should be pretty

Re: [Numpy-discussion] Decision tree-like algorithm on numpy arrays

2010-05-06 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francesc Alted skrev: > Hi Martin, [...] > > and the output for my machine: > > result_array1: [4 2 4 ..., 1 3 4] 1.819 > result_array2: [4 2 4 ..., 1 3 4] 0.308 > > which is a 6x speed-up. I suppose this should be pretty close of what you > can

Re: [Numpy-discussion] Decision tree-like algorithm on numpy arrays

2010-05-06 Thread Francesc Alted
Hi Martin, A Thursday 06 May 2010 08:50:33 Martin Raspaud escrigué: > Hi all, > > I have an old c-extension I want to remove from my code to the benefit of > numpy, but it looks kind of tricky to me. > > Here is the thing: > I have a number of arrays of the same shape. > On these arrays, I run

[Numpy-discussion] Decision tree-like algorithm on numpy arrays

2010-05-06 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have an old c-extension I want to remove from my code to the benefit of numpy, but it looks kind of tricky to me. Here is the thing: I have a number of arrays of the same shape. On these arrays, I run a sequence of tests, leading to a kind