Skip to content

Sort performance data deterministically - #287

Merged
uriahf merged 1 commit into
mainfrom
agent/sort-performance-data
Aug 11, 2026
Merged

Sort performance data deterministically#287
uriahf merged 1 commit into
mainfrom
agent/sort-performance-data

Conversation

@uriahf

@uriahf uriahf commented Aug 11, 2026

Copy link
Copy Markdown
Owner

What changed

  • Sort prepare_performance_data() output by reference_group, stratified_by, and chosen_cutoff.
  • This makes cutoff ordering deterministic instead of depending on Polars group_by/pivot output order.

Why

The R implementation constructs probability thresholds in ascending order, so its public performance data is naturally ordered. The Python implementation aggregates with Polars and previously returned the resulting incidental row order. This change restores predictable R/Python parity for consumers inspecting or using the performance table.

Scope

This intentionally changes only the public return ordering; metric calculations are untouched.

@uriahf
uriahf marked this pull request as ready for review August 11, 2026 12:45
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-11 12:47 UTC

@uriahf
uriahf merged commit 7157de0 into main Aug 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant