Skip to content

Generalize calibration bins - #409

Merged
uriahf merged 3 commits into
mainfrom
generalize-calibration-bins-6283394964679611865
Sep 4, 2026
Merged

Generalize calibration bins#409
uriahf merged 3 commits into
mainfrom
generalize-calibration-bins-6283394964679611865

Conversation

@uriahf

@uriahf uriahf commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Generalizes calibration bins across rtichoke_python by exposing keyword-only n_bins: int = 10 on create_calibration_curve and create_calibration_curve_times, aligning static/non-adjusted binary calibration with R dplyr::ntile() bucket allocation parity, preserving existing adjusted-time Aalen-Johansen grouping semantics, and atomically migrating internal terminology from deciles_dat to calibration_bins_dat.


PR created automatically by Jules for task 6283394964679611865 started by @uriahf

- Expose `n_bins=10` on `create_calibration_curve` and `create_calibration_curve_times` as keyword-only parameter.
- Align static binary calibration binning with R `dplyr::ntile()` contract.
- Preserve existing adjusted-time Aalen-Johansen grouping semantics while renaming `decile` to `bin`.
- Atomically rename internal deciles structures to neutral `calibration_bins_dat`.
- Update canonical adapters and add comprehensive test coverage.

Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-04 09:29 UTC

google-labs-jules Bot and others added 2 commits September 4, 2026 03:45
- Expose `n_bins=10` on `create_calibration_curve` and `create_calibration_curve_times` as keyword-only parameter.
- Align static binary calibration binning with R `dplyr::ntile()` contract.
- Preserve existing adjusted-time Aalen-Johansen grouping semantics while renaming `decile` to `bin`.
- Atomically rename internal deciles structures to neutral `calibration_bins_dat`.
- Update canonical adapters and add comprehensive test coverage.

Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
- Expose `n_bins=10` on `create_calibration_curve` and `create_calibration_curve_times` as keyword-only parameter.
- Wrap subpackage entry points with `functools.wraps` so top-level signature introspection exposes `*, n_bins: int = 10`.
- Preserve positional compatibility on `_create_calibration_curve_list()` with `size` as the third positional parameter.
- Align static binary calibration binning with R `dplyr::ntile()` contract.
- Preserve existing adjusted-time Aalen-Johansen grouping semantics while renaming `decile` to integer `bin`.
- Atomically rename internal deciles structures to neutral `calibration_bins_dat`.
- Update canonical adapters, user guide documentation, and add comprehensive test coverage.

Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
@uriahf
uriahf merged commit f2cf6c5 into main Sep 4, 2026
6 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