3 ms·
Here's my implementation of Jenks in Numba: https://gist.github.com/sklam/4979921 https://gist.github.com/sklam/4979921 It uses numpy array instead of list. D
by sklam 14y ago
Here's my implementation of Jenks in Numba:
https://gist.github.com/sklam/4979921 https://gist.github.com/sklam/4979921
It uses numpy array instead of list. Doing so without Numba is a lot slower because numpy array indexing and operating on array scalars are slow.