You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which algorithm is this? The heuristics Jenks, the total minimum distance Jenks, or the optimized and total minimum distance Fischer-Jenks? Yours deviates from my pure-python Jenks implementation and I suspect off-by-one errors:
Thanks a lot for the report, the links and the test cases.
I'm working on it and already fixed some errors in my implementation in 30abfe4 and 886c567 (as such my jenks_breaks function now returns the correct bounds for your example).
I updated the README, the docstrings and the package metadata to be more precise about the algorithm in use. The returned results should now be correct.
I am preparing a notebook with comparaison of various implementations, i will post the link here if you are interested.
Which algorithm is this? The heuristics Jenks, the total minimum distance Jenks, or the optimized and total minimum distance Fischer-Jenks? Yours deviates from my pure-python Jenks implementation and I suspect off-by-one errors:
Even intuitively the
jenkspy
result is incorrect. My implementation and unit tests are here, seejenks
andtest_jenks_breaks
.Resources:
[1] Is Jenks' Natural Breaks deterministic?
[2] Fisher's Natural Breaks Classification complexity proof
[3] Re: Jenk's Optimization for Natural Breaks Classification
The text was updated successfully, but these errors were encountered: