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

Martin Raspaud martin.raspaud at smhi.se
Fri May 7 02:18:44 EDT 2010


-----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 
> get with C.
> 

Hi Francesc,
Thanks a lot for the idea !
This looks nice, I wasn't aware of numexpr.

I guess it's no problem to run "evaluate" on user defined functions ?

Thanks,
Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJL47DEAAoJEBdvyODiyJI4j64IAMRdLOzrO8vGlxMvJcMaUR8l
/NgeOSTCSfwuFMJRq9F8CWalQ8r/rTAU0XLIVTMPnKneHiclavFQCi3bhevYnInK
Iyi1JBd+S058g3TlfrX4aJ2qmuddlBnMeUXcmRuOgmOggm8wtoMF66bNc+LtiDgZ
Z/D4FlaYu1Vv9/NMD9n6jIm1Cynx/oznblW93RsWtA/gWHNtwRcERyLWTFoai8VW
0YfjbqRpi2f5wM1tc3IgkN4MRNy+MUHpMQ1s9DAi8syunno8R+hwKi0XKm6dMRxW
2l9r6NPlHv7AtgznO1HRVW2u6gg+9eX80fxjfFaYQyD0Fyb5VwFA6Cd/Xj7830o=
=MiIS
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martin_raspaud.vcf
Type: text/x-vcard
Size: 260 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100507/d669c9f6/attachment.vcf>


More information about the NumPy-Discussion mailing list