Skip to content

Conversation

@uriahf
Copy link
Owner

@uriahf uriahf commented Dec 27, 2025

No description provided.

google-labs-jules bot and others added 4 commits December 27, 2025 18:38
The `polars.qcut` function was found to produce inconsistently sorted
string-based intervals across different versions of the `polars` library.
This caused incorrect ordering of deciles in the calibration curve plot.

This commit replaces the `qcut` implementation with a more robust,
manual calculation using the `rank()` window function. The new logic,
`((rank - 1) * n_bins // N) + 1`, correctly and consistently
assigns items to their respective deciles, ensuring the calibration
curve is plotted correctly regardless of the `polars` version.
…8663597

Fix: Replace unstable `qcut` with robust rank-based decile calculation
@uriahf uriahf linked an issue Dec 27, 2025 that may be closed by this pull request
@uriahf uriahf merged commit 8bd57cb into main Dec 27, 2025
1 check 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.

Small changes for better Calibration Plots

2 participants