Commit d82be7a
committed
fix non-deterministic maximum_breaks when gaps are equal
Replace np.argpartition with np.argsort(kind='stable') so that
tied gap sizes are broken by index order, consistently selecting
the highest-value gaps.1 parent dc1d4b6 commit d82be7a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| |||
0 commit comments