[ot-users] SpaceFillingC2 speed
bouzim at gmail.com
Thu Jun 15 19:38:24 CEST 2017
On 2017-06-15 10:15 GMT+02:00 roy <roy at cerfacs.fr>:
> Hello Denis,
> Indeed now OT is faster using ot.Sample(sample).
> Regarding numba, it has to be pure python and not numpy for it to work
> Function time: [4.525451728957705, 4.541200206964277, 4.4143504980020225,
> numba time: [4.3976798499934375, 4.876463262015022, 5.385470865992829,
> Fast numba time: [0.6634743280010298, 0.6538278009975329,
> 0.7077985780197196, 0.6579875709721819]
> OT time: [0.7988348260405473, 0.7220299079781398, 0.7797102630138397,
> [Finished in 53.8s]
> So using numba is here again faster. Even if I use a large sample (1000)
> numba is slightly faster.
Thanks for your sample code, that is interesting.
Your numba implementation is the same as ours, so I guess that
differences only come from wrapping (swig vs. numba), and differences
should become negligible when increasing sample size.
BTW OT is slightly faster on my desktop, but slightly slower on my
laptop (both running Linux).
More information about the users